tcowin
unread,Feb 2, 2012, 8:43:36 PM2/2/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sonata-users
I've added a custom field - not contained in the Entity - to a form
via
$formMapper
.....
->add('resolved', 'text' ,array("property_path" => false,'required' =>
false));
in configureFormFields in Admin.
It appears on the form fine, and I'm able to submit the form. I can
see the value of the submitted form field as a protected parameter in
the request object, yet I cannot determine how to access the value
from code in either Admin or AdminController.
I've tried:
$resolved = $this->get('request')->request->get('resolved');
$data = $form->getData();
among other things :)
Is it possible to access this value using SonataAdmin?