ソースを参照

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()
{

読み込み中…
キャンセル
保存