mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Prepared structure for forms
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Entity;
|
||||
|
||||
use App\Entity\Attribut\NodeAttribut;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use JMS\Serializer\Annotation\Exclude;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -22,6 +23,7 @@ abstract class AbstractSource extends AbstractEntity implements SourceInterface
|
||||
* @var NodeInterface
|
||||
* @ORM\OneToOne(targetEntity="Node",cascade={"persist", "remove"})
|
||||
* @ORM\JoinColumn(name="node_id", referencedColumnName="id")
|
||||
* @Exclude
|
||||
*/
|
||||
protected $node;
|
||||
|
||||
|
@@ -4,6 +4,7 @@ namespace App\Entity;
|
||||
|
||||
use App\Entity\Attribut\NameAttribut;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -16,7 +17,7 @@ class NameSource extends AbstractSource implements NameSourceInterface
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string",length=255)
|
||||
*
|
||||
* @Assert\NotBlank()
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
Reference in New Issue
Block a user