2012-12-17 11:01:20 +01:00
|
|
|
<?php
|
|
|
|
namespace Doctrine\Tests\Models\CompositeKeyInheritance;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Entity
|
|
|
|
* @InheritanceType("SINGLE_TABLE")
|
|
|
|
* @DiscriminatorColumn(name="discr", type="string")
|
2015-01-15 03:48:53 +01:00
|
|
|
* @DiscriminatorMap({"child" = "SingleChildClass", "root" = "SingleRootClass"})
|
2012-12-17 11:01:20 +01:00
|
|
|
*/
|
|
|
|
class SingleRootClass
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
* @Column(type="string")
|
|
|
|
* @Id
|
|
|
|
*/
|
|
|
|
protected $keyPart1 = 'part-1';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
* @Column(type="string")
|
|
|
|
* @Id
|
|
|
|
*/
|
|
|
|
protected $keyPart2 = 'part-2';
|
|
|
|
}
|