mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 14:07:25 +01:00
Solved ORM bugs
This commit is contained in:
parent
7c85b98df6
commit
5dea4e8982
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user