public function indexAction() { $testEntity = new Default_Model_Test(); $testEntity->setName('Zaphod Beeblebrox'); $this->_em->persist($testEntity); $this->_em->flush(); }