Prepared structure for forms

This commit is contained in:
Kevin Frantz
2018-09-17 13:09:04 +02:00
parent 54a2a6a19c
commit 72ddc46712
13 changed files with 83 additions and 32 deletions

View File

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

View File

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