I've added the embedRelations call and i can see (and edit and delete)
my relations when i edit the parent record. But for some reason I
can't add a relation. How do i add a relation?? Am i missing
something in my embedRelations method?
$this->embedRelations(array(
'RestaurantMenuItemOptions' => array(
'considerNewFormEmptyFields' => array('name',
'description'),
'noNewForm' => true,
'newFormLabel' => 'New Menu Item
Option!!!',
'newFormClass' =>
'RestaurantMenuItemOptionsEmbedForm',
'newFormClassArgs' => array(array('sf_user'
=> $this->getOption('sf_user'))),
'displayEmptyRelations' => true,
'formClass' =>
'RestaurantMenuItemOptionsEmbedForm',
'formClassArgs' =>
array(array('ah_add_delete_checkbox' => true)),
'newFormAfterExistingRelations' => true,
'formFormatter' => null,
'multipleNewForms' => true,
'newFormsInitialCount' => 2,
'newFormsContainerForm' => null, // pass
BaseForm object here or we will create ahNewRelationsContainerForm
'newRelationButtonLabel' => '+',
'newRelationAddByCloning' => true,
'newRelationUseJSFramework' => 'jQuery',
'customEmbeddedFormLabelMethod' => 'getLabelTitle'
)
));
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en