mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-05 19:31:02 +00:00
Make repositories use ServiceEntityRepository
This commit is contained in:
parent
51884911f5
commit
1bee0eeb29
11 changed files with 95 additions and 42 deletions
|
@ -2,12 +2,18 @@
|
|||
|
||||
namespace Wallabag\UserBundle\Repository;
|
||||
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use Wallabag\UserBundle\Entity\User;
|
||||
|
||||
class UserRepository extends EntityRepository
|
||||
class UserRepository extends ServiceEntityRepository
|
||||
{
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
parent::__construct($registry, User::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Find a user by its username and Feed token.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue