21 lines
604 B
PHP
21 lines
604 B
PHP
<?php
|
|
|
|
namespace JMS\Serializer\Tests\Fixtures\Doctrine\SingleTableInheritance;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
* @ORM\InheritanceType("SINGLE_TABLE")
|
|
* @ORM\DiscriminatorColumn(name="type", type="string")
|
|
* @ORM\DiscriminatorMap({
|
|
* "student" = "JMS\Serializer\Tests\Fixtures\Doctrine\SingleTableInheritance\Student",
|
|
* "teacher" = "JMS\Serializer\Tests\Fixtures\Doctrine\SingleTableInheritance\Teacher",
|
|
* })
|
|
*/
|
|
abstract class Person extends AbstractModel
|
|
{
|
|
/** @ORM\Id @ORM\GeneratedValue(strategy = "AUTO") @ORM\Column(type = "integer") */
|
|
private $id;
|
|
}
|