コード例 #1
0
 public function init()
 {
     $this->doctrine = Zend_Registry::get('doctrine');
     $this->em = $this->doctrine->getEntityManager();
     $this->_categoria = $this->em->getRepository('\\Models\\Entity\\Categoria');
     $this->_fabricante = $this->em->getRepository('\\Models\\Entity\\Fabricante');
     $this->_producto = $this->em->getRepository('\\Models\\Entity\\Producto');
 }
コード例 #2
0
 public function init()
 {
     $this->doctrine = Zend_Registry::get('doctrine');
     $this->em = $this->doctrine->getEntityManager();
     $this->_article = $this->em->getRepository('application\\models\\Article');
 }
コード例 #3
0
ファイル: StandController.php プロジェクト: resscode/frbr
 public function init()
 {
     $this->doctrine = Zend_Registry::get('doctrine');
     $this->entityManager = $this->doctrine->getEntityManager();
     $this->standRepository = $this->entityManager->getRepository('\\NOLASnowball\\Entity\\Stand');
 }