I have a problem with the SonataAdminBunle in combination with symfony 2.2. I have a Project entity and a ProjectImage entity and specified a One-to-Many relationship betwee
public function prePersist($user) { $this->preUpdate($user); } public function preUpdate($user) { $user->setProperties($user->getProperties()); }
This has perfectly solved the problem for me thanks !