public function getManager() { if ($this->em === NULL) { $this->setManager(Zend_Registry::get('container')->getService('em')); } return $this->em; }