sfDoctrineCreateInPlacePlugin - 0.0.2

A doctrine choice widget.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

sfDoctrineCreateInPlacePlugin

Installation

Install plugin:

symfony plugin:install sfDoctrineCreateInPlacePlugin -s alpha

Usage

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
));