Solved ORM bugs

This commit is contained in:
Kevin Frantz 2018-09-21 16:44:58 +02:00
parent 7c85b98df6
commit 5dea4e8982
3 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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
{

View File

@ -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;