Browse Source

Ecriture des repo

tags/0.1
Fab 3 years ago
parent
commit
8034173169
2 changed files with 5 additions and 7 deletions
  1. +3
    -3
      Repository/File/FileRepository.php
  2. +2
    -4
      Repository/User/UserRepository.php

+ 3
- 3
Repository/File/FileRepository.php View File



namespace Lc\SovBundle\Repository\File; namespace Lc\SovBundle\Repository\File;


use Lc\SovBundle\Doctrine\Extension\FileInterface;
use Lc\SovBundle\Repository\RepositoryAbstract;
use Lc\SovBundle\Model\File\FileInterface;
use Lc\SovBundle\Repository\AbstractRepository;
/** /**
* @method FileInterface|null find($id, $lockMode = null, $lockVersion = null) * @method FileInterface|null find($id, $lockMode = null, $lockVersion = null)
* @method FileInterface|null findOneBy(array $criteria, array $orderBy = null) * @method FileInterface|null findOneBy(array $criteria, array $orderBy = null)
* @method FileInterface[] findAll() * @method FileInterface[] findAll()
* @method FileInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) * @method FileInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/ */
class FileRepository extends RepositoryAbstract
class FileRepository extends AbstractRepository
{ {
public function getInterfaceClass() public function getInterfaceClass()
{ {

+ 2
- 4
Repository/User/UserRepository.php View File



namespace Lc\SovBundle\Repository\User; namespace Lc\SovBundle\Repository\User;


use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use Lc\SovBundle\Model\User\UserInterface; use Lc\SovBundle\Model\User\UserInterface;
use Lc\SovBundle\Repository\RepositoryAbstract;
use Lc\SovBundle\Repository\AbstractRepository;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException; use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface; use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
use Symfony\Component\Security\Core\User\UserInterface as SfUserInterface; use Symfony\Component\Security\Core\User\UserInterface as SfUserInterface;
* @method UserInterface[] findAll() * @method UserInterface[] findAll()
* @method UserInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) * @method UserInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/ */
class UserRepository extends RepositoryAbstract implements PasswordUpgraderInterface
class UserRepository extends AbstractRepository implements PasswordUpgraderInterface
{ {
public function getInterfaceClass() public function getInterfaceClass()
{ {

Loading…
Cancel
Save