示例#1
0
文件: Service.php 项目: zaxxx/zaxcms
 public function __construct(Kdyby\Doctrine\EntityManager $entityManager)
 {
     parent::__construct($entityManager);
     $this->entityClassName = Entity\Resource::getClassName();
 }
示例#2
0
文件: Service.php 项目: zaxxx/zaxcms
 public function getRepository()
 {
     return parent::getRepository()->setLocale($this->getLocale());
 }
示例#3
0
文件: Service.php 项目: zaxxx/zaxcms
 public function __construct(Kdyby\Doctrine\EntityManager $entityManager)
 {
     parent::__construct($entityManager);
     $this->entityClassName = Entity\UserLoginHistory::getClassName();
 }
示例#4
0
文件: Service.php 项目: zaxxx/zaxcms
 public function flush()
 {
     parent::flush();
     $this->invalidateCache();
 }
示例#5
0
文件: Service.php 项目: zaxxx/zaxcms
 public function persist($entity)
 {
     $entity->lastUpdated = new Nette\Utils\DateTime();
     return parent::persist($entity);
 }