Implemented Permission draft

This commit is contained in:
Kevin Frantz
2018-09-13 16:51:58 +02:00
parent 92886a14ce
commit 69f2beac72
28 changed files with 203 additions and 143 deletions

View File

@@ -21,22 +21,25 @@ class Node extends AbstractEntity implements NodeInterface
ParentAttribut,
LawAttribut,
ChildsAttribut;
/**
* @ORM\OneToOne(targetEntity="AbstractSource",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="source_id", referencedColumnName="id")
*
* @var SourceInterface
*/
protected $source;
/**
* @ORM\OneToOne(targetEntity="Law",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="law_id", referencedColumnName="id")
*
* @var LawInterface
*/
protected $law;
public function __construct(){
public function __construct()
{
$this->law = new Law();
$this->law->setNode($this);
}