diff --git a/application/src/Entity/AbstractSource.php b/application/src/Entity/AbstractSource.php index 8993455..6d310c2 100644 --- a/application/src/Entity/AbstractSource.php +++ b/application/src/Entity/AbstractSource.php @@ -12,7 +12,7 @@ use Doctrine\ORM\Mapping as ORM; * @ORM\Entity * @ORM\InheritanceType("JOINED") * @ORM\DiscriminatorColumn(name="discr", type="string") - * @ORM\DiscriminatorMap({"user" = "UserSource"}) + * @ORM\DiscriminatorMap({"user" = "UserSource","name" = "NameSource"}) */ abstract class AbstractSource extends AbstractEntity implements SourceInterface { diff --git a/application/src/Entity/Attribut/NameAttribut.php b/application/src/Entity/Attribut/NameAttribut.php new file mode 100644 index 0000000..b27a0c9 --- /dev/null +++ b/application/src/Entity/Attribut/NameAttribut.php @@ -0,0 +1,27 @@ +name = $name; + } + + public function getName(): string + { + return $this->name; + } +} + diff --git a/application/src/Entity/Attribut/NameAttributInterface.php b/application/src/Entity/Attribut/NameAttributInterface.php new file mode 100644 index 0000000..7904b53 --- /dev/null +++ b/application/src/Entity/Attribut/NameAttributInterface.php @@ -0,0 +1,15 @@ +