Implemented single table inhieratance for NameSources

This commit is contained in:
Kevin Frantz 2018-11-12 21:57:09 +01:00
parent dfde4e34f5
commit 647bc81965

View File

@ -11,9 +11,9 @@ use Doctrine\ORM\Mapping as ORM;
* *
* @ORM\Entity * @ORM\Entity
* @ORM\Table(name="source_data_name") * @ORM\Table(name="source_data_name")
* @ORM\InheritanceType("JOINED") * @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="discr", type="string") * @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 abstract class AbstractNameSource extends AbstractDataSource implements NameSourceInterface
{ {