浏览代码

Ecriture des repo

tags/0.1
Fab 3 年前
父节点
当前提交
8034173169
共有 2 个文件被更改,包括 5 次插入7 次删除
  1. +3
    -3
      Repository/File/FileRepository.php
  2. +2
    -4
      Repository/User/UserRepository.php

+ 3
- 3
Repository/File/FileRepository.php 查看文件

@@ -2,15 +2,15 @@

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 findOneBy(array $criteria, array $orderBy = null)
* @method FileInterface[] findAll()
* @method FileInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class FileRepository extends RepositoryAbstract
class FileRepository extends AbstractRepository
{
public function getInterfaceClass()
{

+ 2
- 4
Repository/User/UserRepository.php 查看文件

@@ -2,10 +2,8 @@

namespace Lc\SovBundle\Repository\User;

use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
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\User\PasswordUpgraderInterface;
use Symfony\Component\Security\Core\User\UserInterface as SfUserInterface;
@@ -16,7 +14,7 @@ use Symfony\Component\Security\Core\User\UserInterface as SfUserInterface;
* @method UserInterface[] findAll()
* @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()
{

正在加载...
取消
保存