From e8ac70de5931f6160b5aa5d3d557315c11766e76 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 1 Nov 2018 22:40:34 +0100 Subject: [PATCH] Fixed schema bugs --- application/src/Entity/Source/AbstractSource.php | 4 ++-- .../src/Entity/Source/Collection/AbstractCollectionSource.php | 2 +- .../src/Entity/Source/Collection/MemberCollectionSource.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/src/Entity/Source/AbstractSource.php b/application/src/Entity/Source/AbstractSource.php index 490879c..0d2e4ae 100644 --- a/application/src/Entity/Source/AbstractSource.php +++ b/application/src/Entity/Source/AbstractSource.php @@ -24,7 +24,7 @@ use App\Entity\Attribut\MembershipsAttribut; * @ORM\Table(name="source") * @ORM\InheritanceType("JOINED") * @ORM\DiscriminatorColumn(name="discr", type="string") - * @ORM\DiscriminatorMap({"user" = "UserSource","name" = "NameSource","group" = "GroupSource"}) + * @ORM\DiscriminatorMap({"user" = "UserSource","name" = "NameSource","group" = "App\Entity\Source\Collection\MemberCollectionSource"}) */ abstract class AbstractSource extends AbstractEntity implements SourceInterface { @@ -43,7 +43,7 @@ abstract class AbstractSource extends AbstractEntity implements SourceInterface * @todo Rename table to use the right schema * * @var Collection|MemberCollectionSource[] - * @ORM\ManyToMany(targetEntity="GroupSource",mappedBy="members") + * @ORM\ManyToMany(targetEntity="App\Entity\Source\Collection\MemberCollectionSource",mappedBy="members") */ protected $memberships; diff --git a/application/src/Entity/Source/Collection/AbstractCollectionSource.php b/application/src/Entity/Source/Collection/AbstractCollectionSource.php index fd08cab..28a6e39 100644 --- a/application/src/Entity/Source/Collection/AbstractCollectionSource.php +++ b/application/src/Entity/Source/Collection/AbstractCollectionSource.php @@ -6,8 +6,8 @@ use App\Entity\Source\AbstractSource; /** * @todo Implement inhiering classes! - * @author kevinfrantz * + * @author kevinfrantz */ class AbstractCollectionSource extends AbstractSource implements CollectionSourceInterface { diff --git a/application/src/Entity/Source/Collection/MemberCollectionSource.php b/application/src/Entity/Source/Collection/MemberCollectionSource.php index 5f6d5ca..2977264 100644 --- a/application/src/Entity/Source/Collection/MemberCollectionSource.php +++ b/application/src/Entity/Source/Collection/MemberCollectionSource.php @@ -18,7 +18,7 @@ final class MemberCollectionSource extends AbstractCollectionSource implements M /** * @var Collection - * @ORM\ManyToMany(targetEntity="AbstractSource",inversedBy="groups") + * @ORM\ManyToMany(targetEntity="App\Entity\Source\AbstractSource",inversedBy="groups") * @ORM\JoinTable(name="source_group_members") */ protected $members;