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

@@ -17,15 +17,16 @@ use Doctrine\ORM\Mapping as ORM;
abstract class AbstractSource extends AbstractEntity implements SourceInterface
{
use NodeAttribut;
/**
* @var NodeInterface
* @ORM\OneToOne(targetEntity="Node",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="node_id", referencedColumnName="id")
*/
protected $node;
public function __construct(){
public function __construct()
{
$this->node = new Node();
$this->node->setSource($this);
}