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