Changed inhieratance type to joined

This commit is contained in:
Kevin Frantz
2018-11-20 22:55:20 +01:00
parent 7ca10cf154
commit aab188688c
2 changed files with 38 additions and 35 deletions

View File

@@ -9,10 +9,11 @@ use Symfony\Component\Validator\Constraints as Assert;
/**
* @author kevinfrantz
*
* @todo Change to SINGLE_TABLE. JOINED was necessary because SINGLE_TABLE leaded to:
* @see << SQLSTATE[42S02]: Base table or view not found: 1146 Table 'DEV_DATABASE.source_data_name' doesn't exist >>
* @ORM\Entity
* @ORM\Table(name="source_data_name")
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="discr", type="string")
* @ORM\DiscriminatorMap({"nickname" = "NicknameSource","firstname" = "FirstNameSource", "surname" = "SurnameSource"})
*/