[symfony-users] Re: Primary key input hidden

2009-09-16 Thread waouf
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.

[symfony-users] sfvalidatordoctrineunique and admin generator: unicity on multiple columns

2009-09-15 Thread waouf
Hi all, I'm getting in trouble using sfvalidatordoctrineunique (Symfony 1.2.8, Doctrine, Ubuntu). This method validates the uniqueness of a column. According to API (http://www.symfony-project.org/api/1_2/ sfValidatorDoctrineUnique), we should be able to add several fields in options (columns