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));
chee
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 h
what if the pk is a not an autoincrement ? fails on validation..
2009/7/28 Eno
>
> On Tue, 28 Jul 2009, bouda25 wrote:
>
> > I have generated my first application with Symfony+Doctrine. But when
> > I open a form there is no input zone corresponding to a primary key
> > column of my tables. I am
On Tue, 28 Jul 2009, bouda25 wrote:
> I have generated my first application with Symfony+Doctrine. But when
> I open a form there is no input zone corresponding to a primary key
> column of my tables. I am wondering if I have done anything wrong? Is
> there any way to get these inputs displayed?