Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Model: facade is now IQueriable
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrtak-CZ committed Nov 6, 2012
1 parent e84bdb8 commit c1196c7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Nella/Model/Facade.php
Expand Up @@ -17,7 +17,7 @@
*
* @author Patrik Votoček
*/
class Facade extends \Nette\Object implements IDao, IObjectFactory
class Facade extends \Nette\Object implements IDao, IObjectFactory, IQueryable
{
/** @var \Doctrine\ORM\EntityManager */
protected $em;
Expand Down Expand Up @@ -125,5 +125,14 @@ public function findBy(array $criteria, array $orderBy = NULL, $limit = NULL, $o
{
return $this->repository->findBy($criteria, $orderBy, $limit, $offset);
}

/**
* @param string|NULL
* @return \Doctrine\ORM\QueryBuilder|\Doctrine\CouchDB\View\AbstractQuery
*/
public function createQueryBuilder($alias)
{
return $this->repository->createQueryBuilder($alias);
}
}

0 comments on commit c1196c7

Please sign in to comment.