Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Doctrine widget

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 modules
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 README.markdown
Octocat-spinner-32 VERSION
Octocat-spinner-32 package.xml
README.markdown

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
));
Something went wrong with that request. Please try again.