1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures\Doctrine\SingleTableInheritance;
6
7use Doctrine\ORM\Mapping as ORM;
8
9/**
10 * @ORM\Entity
11 * @ORM\InheritanceType("SINGLE_TABLE")
12 * @ORM\DiscriminatorColumn(name="type", type="string")
13 * @ORM\DiscriminatorMap({
14 *     "student" = "JMS\Serializer\Tests\Fixtures\Doctrine\SingleTableInheritance\Student",
15 *     "teacher" = "JMS\Serializer\Tests\Fixtures\Doctrine\SingleTableInheritance\Teacher",
16 * })
17 */
18abstract class Person extends AbstractModel
19{
20    /** @ORM\Id @ORM\GeneratedValue(strategy = "AUTO") @ORM\Column(type = "integer") */
21    private $id;
22}
23