![]() |
|
sfDoctrineCreateInPlacePlugin - 0.0.2A doctrine choice widget. |
|
Install plugin:
symfony plugin:install sfDoctrineCreateInPlacePlugin -s alpha
First, enable the sfDoctrineCreateInPlace module in the settings.yml:
all:
.settings:
...
enabled_modules: [ default, sfDoctrineCreateInPlace ]
Then, change your form:
$this->widgetSchema['author_id'] = new sfWidgetFormDoctrineChoiceCreateInPlace(array( 'height' => 300, 'model' => $this->getRelatedModelName('Author'), 'add_empty' => false ));