To add some more info to last post, here is what you need to put in the "lib/form/*YourTableName*Form.class.php" file:
// Redefine primary keys as Dropdown lists $this->widgetSchema['your_primary_key'] = new sfWidgetFormDoctrineChoice(array('model' => 'your_model', 'add_empty' => false)); cheers. On 28 juil, 17:27, François CONSTANT <francois.const...@gmail.com> wrote: > Hi, > > First of al, check the html out to see if there is a hidden field, > there must be ! > > I use Propel but it must be the same. Look to the generated form in > lib/forms/base/Base*YourTableName*Form.class.php > > You should see that : 'id' => new sfWidgetFormInputHidden(), in > setWidget. > > So, what U have to do is editing this widget in lib/form/ > *YourTableName*Form.class.php > > Hope it helps, > > On Jul 28, 12:00 pm, bouda25 <kabadi...@yahoo.co.uk> wrote: > > > Hi, > > > I have generated my first application with Symfony+Doctrine. But when > > I open a form there is no input zone corresponding to aprimarykey > > column of my tables. I am wondering if I have done anything wrong? Is > > there any way to get these inputs displayed? > > I have searched the forum but didn't get anything relating to this > > matter. > > > Thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---