Bonjour,
j'ai un léger soucis, j'obtiens :
Quand j'utilise une méthode d'accès à une donnée générée automatiquent par symfony dans la méthode __toString() que j'ai rajouté.
Code : Sélectionner tout - Visualiser dans une fenêtre à part Fatal error: Call to undefined function getReferenceacc() in /home/web/apache/sites/appliri-qualif.irisa.fr/htdocs/DB_RI/lib/model/doctrine/base/BaseProgrammeAccord.class.php on line 56
Schema.yml correspondant :
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 <?php /** * BaseProgrammeAccord * * This class has been auto-generated by the Doctrine ORM Framework * * @property string $referenceacc * @property integer $OrgaEmetteur_id * @property Institution $Institution * @property Doctrine_Collection $Formelles * * @method string getReferenceacc() Returns the current record's "referenceacc" value * @method integer getOrgaEmetteurId() Returns the current record's "OrgaEmetteur_id" value * @method Institution getInstitution() Returns the current record's "Institution" value * @method Doctrine_Collection getFormelles() Returns the current record's "Formelles" collection * @method ProgrammeAccord setReferenceacc() Sets the current record's "referenceacc" value * @method ProgrammeAccord setOrgaEmetteurId() Sets the current record's "OrgaEmetteur_id" value * @method ProgrammeAccord setInstitution() Sets the current record's "Institution" value * @method ProgrammeAccord setFormelles() Sets the current record's "Formelles" collection * */ abstract class BaseProgrammeAccord extends sfDoctrineRecord { [....] public function __toString() { return getReferenceacc(); } }#BaseProgrammeAccord.php
Une idée de la raison de ce soucis ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 ProgrammeAccord: tableName: Programme_accord columns: referenceacc: type: string(255) OrgaEmetteur_id: type: integer(8) relations: Institution: local: OrgaEmetteur_id foreignAlias: ProgrammeAccords
Merci d'avance
Noobboy
Partager