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:
parent
6c87418ff0
commit
46bbd8d321
7 changed files with 60 additions and 148 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue