Optimized for SPA

This commit is contained in:
Kevin Frantz
2019-01-05 23:52:37 +01:00
parent 9e685260e9
commit bccd6efaff
393 changed files with 253 additions and 37 deletions

View File

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Repository;
use Doctrine\ORM\EntityRepository;
/**
* @author kevinfrantz
*/
class LawRepository extends EntityRepository
{
}

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Repository;
use Doctrine\ORM\EntityRepository;
/**
* @author kevinfrantz
*/
class RightRepository extends EntityRepository
{
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Repository\Source;
use Doctrine\ORM\EntityRepository;
use App\Entity\Source\SourceInterface;
final class SourceRepository extends EntityRepository
{
/**
* @param string $slug
*
* @return SourceInterface|null
*/
public function findOneBySlug(string $slug): ?SourceInterface
{
return $this->findOneBy(['slug' => $slug]);
}
}

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Repository;
use Doctrine\ORM\EntityRepository;
/**
* @author kevinfrantz
*/
class UserRepository extends EntityRepository
{
}

View File

@@ -0,0 +1,14 @@
<?php
namespace App\Repository;
use Doctrine\ORM\EntityRepository;
/**
* @author kevinfrantz
*
* @deprecated
*/
class UserSourceRepository extends EntityRepository
{
}