forked from wallabag/wallabag
relation between tags and entries
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user