I am new to sonata admin bundle
I have created a form in sonata admin bundle.
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->with('General')
->add('userid', null, array('label' => 'User'))
->add('cityid', null, array('label' => 'City Name'))
->end();
}
Here userid
and cityid
are composite key.
I am able to create a new record successfully. But Updation on the same record by changing any one of the composite key creates a problem.
The record is updated successfully in the database but it throws the exception
unable to find the object with id : 1~1
where 1~1 is the id of user and city prior its updation. How do i resolve this Exception?
Thanks in advance.