diff --git a/application/src/Entity/AbstractSource.php b/application/src/Entity/AbstractSource.php index c417aba..3a06fc4 100644 --- a/application/src/Entity/AbstractSource.php +++ b/application/src/Entity/AbstractSource.php @@ -7,6 +7,7 @@ use App\Entity\attribut\NodeAttribut; /** * * @author kevinfrantz + * @see https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/inheritance-mapping.html * */ abstract class AbstractSource implements SourceInterface diff --git a/application/src/Entity/attribut/IdAttribut.php b/application/src/Entity/Attribut/IdAttribut.php similarity index 92% rename from application/src/Entity/attribut/IdAttribut.php rename to application/src/Entity/Attribut/IdAttribut.php index c4af5ca..2e31319 100644 --- a/application/src/Entity/attribut/IdAttribut.php +++ b/application/src/Entity/Attribut/IdAttribut.php @@ -1,5 +1,5 @@ parents; + } + + public function setParents(ArrayCollection $parents): void + { + $this->parents = $parents; + } +} + diff --git a/application/src/Entity/Attribut/ParentsAttributInterface.php b/application/src/Entity/Attribut/ParentsAttributInterface.php new file mode 100644 index 0000000..59dfdc9 --- /dev/null +++ b/application/src/Entity/Attribut/ParentsAttributInterface.php @@ -0,0 +1,17 @@ +