Example #1
0
 public function __construct(Kdyby\Doctrine\EntityManager $entityManager)
 {
     parent::__construct($entityManager);
     $this->entityClassName = Entity\Resource::getClassName();
 }
Example #2
0
 public function getRepository()
 {
     return parent::getRepository()->setLocale($this->getLocale());
 }
Example #3
0
 public function __construct(Kdyby\Doctrine\EntityManager $entityManager)
 {
     parent::__construct($entityManager);
     $this->entityClassName = Entity\UserLoginHistory::getClassName();
 }
Example #4
0
 public function flush()
 {
     parent::flush();
     $this->invalidateCache();
 }
Example #5
0
 public function persist($entity)
 {
     $entity->lastUpdated = new Nette\Utils\DateTime();
     return parent::persist($entity);
 }