diff --git a/application/config/packages/doctrine.yaml b/application/config/packages/doctrine.yaml index a148a44..816f889 100644 --- a/application/config/packages/doctrine.yaml +++ b/application/config/packages/doctrine.yaml @@ -18,6 +18,7 @@ doctrine: types: RightType: App\DBAL\Types\RightType RecieverType: App\DBAL\Types\RecieverType + LayerType: App\DBAL\Types\LayerType orm: auto_generate_proxy_classes: '%kernel.debug%' naming_strategy: doctrine.orm.naming_strategy.underscore diff --git a/application/src/Entity/RecieverGroup.php b/application/src/Entity/RecieverGroup.php index 8ffe4ad..5bcdb15 100644 --- a/application/src/Entity/RecieverGroup.php +++ b/application/src/Entity/RecieverGroup.php @@ -7,9 +7,13 @@ use App\Entity\Attribut\RecieverAttribut; use Doctrine\Common\Collections\ArrayCollection; use App\DBAL\Types\RecieverType; use Symfony\Component\Intl\Exception\NotImplementedException; +use Doctrine\ORM\Mapping as ORM; +use Fresh\DoctrineEnumBundle\Validator\Constraints as DoctrineAssert; /** * @author kevinfrantz + * @ORM\Table(name="reciever_group") + * @ORM\Entity() */ class RecieverGroup extends AbstractEntity implements RecieverGroupInterface { diff --git a/application/src/Entity/Right.php b/application/src/Entity/Right.php index 8ca0f64..ab81f3b 100644 --- a/application/src/Entity/Right.php +++ b/application/src/Entity/Right.php @@ -35,7 +35,7 @@ class Right extends AbstractEntity implements RightInterface protected $law; /** - * @ORM\Column(name="type", type="LayerType", nullable=false) + * @ORM\Column(name="layer", type="LayerType", nullable=false) * @DoctrineAssert\Enum(entity="App\DBAL\Types\LayerType") * * @var string @@ -74,8 +74,8 @@ class Right extends AbstractEntity implements RightInterface protected $type; /** - * @ORM\OneToOne(targetEntity="AbstractOperation",cascade={"persist"},nullable=true) - * + * @ORM\OneToOne(targetEntity="AbstractOperation",cascade={"persist"}) + * @ORM\Column(nullable=true) * @var OperationInterface */ protected $condition;