Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #223 Allow easier override of the "new" action. (Pierstoval)
This PR was merged into the master branch. Discussion ---------- Allow easier override of the "new" action. With this commit, we can easily customize the instanciation of our entities. I'm proposing this modification because we have a specific case in which we only want to add default contents in a brand new instanciated object, but the content is retrieved via webservice, so I'm doing it in the controller. Also, this simple workaround allows the users to override the method and create new `User` entity in the FOSUserBundle by returning a new User object using the `$this->container->get('fos_user.user_manager')->createUser()` instruction. I think this is useful 😃 Commits ------- a937046 Added an "instanciateNewEntity" controller method
- Loading branch information