bonjour,
voila mon problème j'ai le schéma suivant :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
| Table1:
columns:
id:
type: integer(4)
fixed: false
unsigned: false
primary: true
for_id:
type: integer(4)
fixed: false
unsigned: false
title:
type: string(255)
Table2:
columns:
id:
type: integer(4)
fixed: false
unsigned: false
primary: true
for_id:
type: integer(4)
fixed: false
unsigned: false
title:
type: string(255)
Table3:
columns:
id:
type: integer(4)
fixed: false
unsigned: false
primary: true
for_id:
type: integer(4)
fixed: false
unsigned: false
title:
type: string(255)
Association:
columns:
for_id::
type: integer(4)
fixed: false
unsigned: false
primary: true
to_id:
type: integer(4)
fixed: false
unsigned: false
primary: true
Indication:
columns:
to_id:
type: integer(4)
fixed: false
unsigned: false
primary: true
title:
type: string(255) |
A partir de cela, je dois mettre en place les relations de manière à avoir pour les table 1 2 et 3 les Indications correspondantes :
Table1 0,1 <-> 1,1 Association 0,n <-> 0,n Indication
Table2 0,1 <-> 1,1 Association 0,n <-> 0,n Indication
Table3 0,1 <-> 1,1 Association 0,n <-> 0,n Indication
Je n'arrive pas à trouver la bonne façon, si j'utilise un classRef, Doctrine me fait systématiquement la jointure sur
Table1.id = Association.for_id
et non
Table1.for_id = Association.for_id
merci de votre aide,
Sem
Partager