diff --git a/application/src/Entity/AbstractSource.php b/application/src/Entity/AbstractSource.php index 2739ca0..7edb587 100644 --- a/application/src/Entity/AbstractSource.php +++ b/application/src/Entity/AbstractSource.php @@ -19,8 +19,7 @@ abstract class AbstractSource implements SourceInterface { use IdAttribut,NodeAttribut; - /** - * @var ConfigurationInterface - */ - protected $configuration; + public function __construct(){ + $this->node = new Node(); + } } diff --git a/application/src/Entity/Attribut/NodeAttribut.php b/application/src/Entity/Attribut/NodeAttribut.php index 5562730..a0cb5fc 100644 --- a/application/src/Entity/Attribut/NodeAttribut.php +++ b/application/src/Entity/Attribut/NodeAttribut.php @@ -11,7 +11,7 @@ trait NodeAttribut { /** * @var NodeInterface - * @ORM\OneToOne(targetEntity="Node") + * @ORM\OneToOne(targetEntity="Node",cascade={"persist", "remove"}) * @ORM\JoinColumn(name="node_id", referencedColumnName="id") */ protected $node; diff --git a/application/src/Entity/Configuration.php b/application/src/Entity/Configuration.php deleted file mode 100644 index 1e209f9..0000000 --- a/application/src/Entity/Configuration.php +++ /dev/null @@ -1,48 +0,0 @@ -isActive = true; + $this->node = new Node(); } }