mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Implemented Permission draft
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user