mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 09:19:08 +00:00 
			
		
		
		
	Solved ORM bugs
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user