Bonjour,
J'ai un soucis lorsque je veux réaliser une jointure entre mes deux tables.
J'utilise symfony 1.14. voici mes codes
et mon fichier yml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 $this->lieux = Doctrine_Query::create() ->select('*') ->from('lieu') ->innerJoin('lieu.adress') ->execute();
et voici mon erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114 Adresse: connection: doctrine tableName: adresse columns: id: type: integer(8) fixed: false unsigned: false primary: true autoincrement: true reflieu: type: integer(4) fixed: false unsigned: false primary: false notnull: true autoincrement: false pays: type: string(255) fixed: false unsigned: false primary: false notnull: true autoincrement: false ville: type: string(25) fixed: false unsigned: false primary: false notnull: true autoincrement: false adresse: type: string(255) fixed: false unsigned: false primary: false notnull: true autoincrement: false latitude: type: integer(4) fixed: false unsigned: false primary: false notnull: true autoincrement: false longitude: type: integer(4) fixed: false unsigned: false primary: false notnull: true autoincrement: false relations: Lieu: local: reflieu foreign: id type: one foreignAlias: adress Lieu: connection: doctrine tableName: lieu columns: id: type: integer(4) fixed: false unsigned: false primary: true autoincrement: true nom: type: string(255) fixed: false unsigned: false primary: false notnull: true autoincrement: false descriptif: type: string() fixed: false unsigned: false primary: false notnull: true autoincrement: false image: type: string() fixed: false unsigned: false primary: false notnull: true autoincrement: false lien: type: string(255) fixed: false unsigned: false primary: false notnull: true autoincrement: false relations: Adresse: local: id foreign: reflieu type: many Contact: local: id foreign: reflieu type: many Reseau: local: id foreign: reflieu type: many Types: local: id foreign: reflieu type: many
Merci d'avance pour votre aideUnknown relation alias adress
Partager