public function indexAction()
 {
     $testEntity = new Default_Model_Test();
     $testEntity->setName('Zaphod Beeblebrox');
     $this->_em->persist($testEntity);
     $this->_em->flush();
 }
Ejemplo n.º 2
0
 private function getTestMessageFromDb()
 {
     $result = array();
     $testTable = new Default_Model_Test();
     $testList = $testTable->fetchRow(K_Db_Select::create()->limit(1));
     $result = $testList->toArray();
     return $result;
 }