Refactored Repositories

This commit is contained in:
Kevin Frantz
2019-01-16 20:40:15 +01:00
parent 662541cec2
commit 3ca5f3dc36
13 changed files with 70 additions and 38 deletions

View File

@@ -12,7 +12,7 @@ use App\Entity\Attribut\GrantAttribut;
/**
* @author kevinfrantz
* @ORM\Table(name="meta_law")
* @ORM\Entity(repositoryClass="App\Repository\LawRepository")
* @ORM\Entity(repositoryClass="App\Repository\Meta\LawRepository")
*/
class Law extends AbstractMeta implements LawInterface
{

View File

@@ -23,7 +23,7 @@ use App\DBAL\Types\Meta\Right\CRUDType;
*
* @author kevinfrantz
* @ORM\Table(name="meta_right")
* @ORM\Entity(repositoryClass="App\Repository\RightRepository")
* @ORM\Entity(repositoryClass="App\Repository\Meta\RightRepository")
*/
class Right extends AbstractMeta implements RightInterface
{
@@ -99,6 +99,11 @@ class Right extends AbstractMeta implements RightInterface
$this->priority = 0;
}
/**
* {@inheritdoc}
*
* @see \App\Entity\Attribut\TypeAttributInterface::setType()
*/
public function setType(string $type): void
{
if (!array_key_exists($type, CRUDType::getChoices())) {
@@ -107,6 +112,11 @@ class Right extends AbstractMeta implements RightInterface
$this->type = $type;
}
/**
* {@inheritdoc}
*
* @see \App\Entity\Attribut\LayerAttributInterface::setLayer()
*/
public function setLayer(string $layer): void
{
if (!array_key_exists($layer, LayerType::getChoices())) {

View File

@@ -9,7 +9,7 @@ use App\Entity\Attribut\PersonIdentitySourceAttribut;
/**
* @author kevinfrantz
* @ORM\Entity(repositoryClass="App\Repository\UserSourceRepository")
* @ORM\Entity(repositoryClass="App\Repository\Source\Complex\UserSourceRepository")
*/
class UserSource extends AbstractComplexSource implements UserSourceInterface
{