18 lines
368 B
PHP
18 lines
368 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\OneToOneSingleTableInheritance;
|
|
|
|
/**
|
|
* @Entity
|
|
* @Table(name="one_to_one_single_table_inheritance_pet")
|
|
* @InheritanceType("SINGLE_TABLE")
|
|
* @DiscriminatorMap({"cat" = "Cat"})
|
|
*/
|
|
abstract class Pet
|
|
{
|
|
const CLASSNAME = __CLASS__;
|
|
|
|
/** @Id @Column(type="integer") @GeneratedValue(strategy="AUTO") */
|
|
public $id;
|
|
}
|