0
<?php
namespace MyProject\Model;
/**
* @Entity
* @InheritanceType("SINGLE_TABLE")
* @DiscriminatorColumn(name="discr", type="string")
* @DiscriminatorMap({"person" = "Person", "employee" = "Employee"})
*/
class Person
{
// ...
}
/**
* @Entity
*/
class Employee extends Person
{
// ...
}
上記の教義実体継承のオートロードを定義する方法は?あるいは、各エンティティをEntity \ Person.php、Employee \ Person.phpなどの別々のファイルに入れることはできますか?Zend Framework 3で継承した教義のエンティティを自動読み込みする方法は?
質問で明らかになっている2つの異なるファイルに間違いなく分割する必要があります。 –