TplBlock/vendor/jms/serializer/tests/Fixtures/Doctrine/SingleTableInheritance/Organization.php

20 lines
493 B
PHP
Raw Normal View History

2018-03-26 21:57:35 +02:00
<?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({
* "school" = "JMS\Serializer\Tests\Fixtures\Doctrine\SingleTableInheritance\School"
* })
*/
abstract class Organization
{
/** @ORM\Id @ORM\GeneratedValue(strategy = "AUTO") @ORM\Column(type = "integer") */
private $id;
}