1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-20 19:52:09 +00:00

relation between tags and entries

This commit is contained in:
Nicolas Lœuillet 2015-02-24 07:42:09 +01:00
parent 6c87418ff0
commit 46bbd8d321
7 changed files with 60 additions and 148 deletions

View file

@ -118,4 +118,15 @@ class EntryRepository extends EntityRepository
->getQuery()
->getResult();
}
public function findOneWithTags()
{
$qb = $this->createQueryBuilder('e')
->innerJoin('e.tags', 't')
->addSelect('t');
return $qb
->getQuery()
->getOneOrNullResult();
}
}