PHRAS-3754 admin - user detail - Record ACL tab (#4148)

* record acl tab in admin

* fix email locked, limit record right to 200

* fix

* add filter

* update

* feed element, basket element

* feed list

* feed entries

* when not expand

* some improvement
This commit is contained in:
Aina Sitraka
2022-10-26 00:21:25 +03:00
committed by GitHub
parent 19b4f6d06b
commit 69ccdefb51
10 changed files with 742 additions and 141 deletions

View File

@@ -12,6 +12,7 @@
namespace Alchemy\Phrasea\Model\Repositories;
use Alchemy\Phrasea\Model\Entities\Feed;
use Alchemy\Phrasea\Model\Entities\User;
use Doctrine\ORM\EntityRepository;
/**
@@ -108,4 +109,14 @@ class FeedRepository extends EntityRepository
return $qb->getQuery()->getResult();
}
public function getUserFeed(User $user)
{
$qb = $this->createQueryBuilder('f');
$qb->innerJoin('f.publishers', 'fp');
$qb->where($qb->expr()->eq('fp.user', ':publisher'));
$qb->setParameter(':publisher', $user);
return $qb->getQuery()->getResult();
}
}