Bonjour à tous et tout d'abord bonne année 2011 à la communauté.
Voilà ca fait quelques jours que je cherche et que je trouve pas sur la toile ou par moi-même la solution à mon problème.
Lors de la première consultation d'une page ou un tri sur un colonne (n'importe laquelle) du backend. il m'indique cette erreur, je rafraichis ma page et celle-ci s'affiche.
Effectivement il ne trouve pas ce champs car c'est un champ internationalisé et donc qui se trouve dans la table residenceTranslation
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 Doctrine_Connection_Mysql_Exception Unknown column 'r.description' in 'field list'. Failing Query: "SELECT r.ref AS r__ref, r.nom AS r__nom, r.description AS r__description, r.adresse1 AS r__adresse1, r.adresse2 AS r__adresse2, r.codepostal AS r__codepostal, r.ville AS r__ville, r.lat AS r__lat, r.lng AS r__lng, r.created_at AS r__created_at, r.updated_at AS r__updated_at, r.latitude AS r__latitude, r.longitude AS r__longitude FROM residence r ORDER BY r.codepostal asc LIMIT 20"
voici le schema de ma table
J'ai la même erreur qui se produit sur n'importe quelle classe de mon modèle qui a un champ internationalisé.
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 residence: actAs: timestampable: ~ i18n: fields: [description] geographical: ~ columns: ref: { type: string(10), primary: true, notnull: true } nom: { type: string(255), notnull: true } description: { type: string(4000), notnull: true } adresse1: { type: string(255), notnull: true } adresse2: { type: string(255), notnull: false } codepostal: { type: int(8), unsigned: true, notnull: true } ville: { type: string(255), notnull: true } relations: residenceimage: { local: ref, foreign: residence_ref, type: many } appartement: { local: ref, foreign: residence_ref, type: many } infrastructures: class: infrastructure refClass: residenceinfrastructure local: residence_ref foreign: infrastructure_id foreignAlias: Infrastructures options: type: INNODB collate: utf8_bin charset: utf8
Y'a t'il une méthode à surcharger si oui laquelle.
J'espère avoir été clair dans l'énoncé dans mon problème.
Par avance merci
Partager