/** * action create * * @param \Fakturaberlin\Werkstattsuche\Domain\Model\Bezirk $newBezirk * @return void */ public function createAction(\Fakturaberlin\Werkstattsuche\Domain\Model\Bezirk $newBezirk) { $this->addFlashMessage('The object was created. Please be aware that this action is publicly accessible unless you implement an access check. See <a href="http://wiki.typo3.org/T3Doc/Extension_Builder/Using_the_Extension_Builder#1._Model_the_domain" target="_blank">Wiki</a>', '', \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR); $this->bezirkRepository->add($newBezirk); $this->redirect('list'); }