Is ID set as primary key in the TEspecialidad table?
On 15 ún, 18:35, ReynierPM <[email protected]> wrote: > Hi every: > I have this code in BaseTAfiliadoForm.class.php: > > 'id_especialidad' => new sfWidgetFormDoctrineChoice(array('model' => > $this->getRelatedModelName('TEspecialidad'), 'add_empty' => true)), > > This generate the following HTML code: > > <select name="t_afiliado[id_especialidad]" id="t_afiliado_id_especialidad"> > <option value="" selected="selected"></option> > <option value="1">Especialidad1</option> > </select> > > But the ID associated to Especialidad1 in TEspecialidad table is "2" not > "1", why this? Every time I try to add a new record I get "Invalid" > validation error due to this issue. How can I solve this? > -- > Cheers and thx in advance > ReynierPM -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
