From 647bc81965dbf6e3f7ccdd2e5060aab951e8591b Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Mon, 12 Nov 2018 21:57:09 +0100 Subject: [PATCH] Implemented single table inhieratance for NameSources --- .../src/Entity/Source/Data/Name/AbstractNameSource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/src/Entity/Source/Data/Name/AbstractNameSource.php b/application/src/Entity/Source/Data/Name/AbstractNameSource.php index 12aace6..32c0180 100644 --- a/application/src/Entity/Source/Data/Name/AbstractNameSource.php +++ b/application/src/Entity/Source/Data/Name/AbstractNameSource.php @@ -11,9 +11,9 @@ use Doctrine\ORM\Mapping as ORM; * * @ORM\Entity * @ORM\Table(name="source_data_name") - * @ORM\InheritanceType("JOINED") + * @ORM\InheritanceType("SINGLE_TABLE") * @ORM\DiscriminatorColumn(name="discr", type="string") - * @ORM\DiscriminatorMap({"nickname" = "NicknameSource"}) + * @ORM\DiscriminatorMap({"nickname" = "NicknameSource","firstname" = "FirstNameSource", "lastname" = "LastNameSource"}) */ abstract class AbstractNameSource extends AbstractDataSource implements NameSourceInterface {