[symfony-users] Re: Why this don't take the real ID values from DB?

2010-02-17 Thread Tom Ptacnik
Or ... http://www.symfony-project.org/api/1_3/sfWidgetFormDoctrineChoice your can specify your key_method On 16 ún, 16:38, ReynierPM wrote: > On 2/16/2010 10:12 AM, Tom Ptacnik wrote: > > > Is  ID set as primary key in the TEspecialidad table? > > I found the problem, the PK is compound by 3 fi

Re: [symfony-users] Re: Why this don't take the real ID values from DB?

2010-02-16 Thread ReynierPM
On 2/16/2010 10:12 AM, Tom Ptacnik wrote: Is ID set as primary key in the TEspecialidad table? I found the problem, the PK is compound by 3 fields and Doctrine have problems with this (as far as I know). The solution: leave the PK with just one field. -- Cheers ReynierPM -- You received t

[symfony-users] Re: Why this don't take the real ID values from DB?

2010-02-16 Thread Tom Ptacnik
Is ID set as primary key in the TEspecialidad table? On 15 ún, 18:35, ReynierPM wrote: > Hi every: > I have this code in BaseTAfiliadoForm.class.php: > > 'id_especialidad' => new sfWidgetFormDoctrineChoice(array('model' => > $this->getRelatedModelName('TEspecialidad'), 'add_empty' => true)), >