コード例 #1
0
ファイル: User.php プロジェクト: jhonmike/zf-user
 public function __construct(EntityManager $em, SmtpTransport $transport, $view)
 {
     parent::__construct($em);
     $this->entity = "Zf2User\\Entity\\User";
     $this->transport = $transport;
     $this->view = $view;
 }
コード例 #2
0
ファイル: Resource.php プロジェクト: jhonmike/zf-acl
 public function __construct(\Doctrine\ORM\EntityManager $em)
 {
     parent::__construct($em);
     $this->entity = "Zf2Acl\\Entity\\Resource";
 }
コード例 #3
0
ファイル: Privilege.php プロジェクト: jhonmike/zf-acl
 public function persist(array $data, $id = null)
 {
     $data['role'] = $this->em->getReference('Zf2Acl\\Entity\\Role', $data['role']);
     $data['resource'] = $this->em->getReference('Zf2Acl\\Entity\\Resource', $data['resource']);
     return parent::persist($data, $id);
 }
コード例 #4
0
ファイル: Role.php プロジェクト: jhonmike/zf-acl
 public function persist(array $data, $id = null)
 {
     $data['parent'] = $this->em->getReference($this->entity, $data['parent']);
     return parent::persist($data, $id);
 }
コード例 #5
0
ファイル: Perfil.php プロジェクト: jhonmike/zf-user
 public function __construct(\Doctrine\ORM\EntityManager $em)
 {
     parent::__construct($em);
     $this->entity = "Zf2User\\Entity\\Perfil";
 }