fb055ca75d
SchemaTool now creates all Id columns not just only the first one. Insert statement for child entity now contains parameter for additional key columns only once.
26 lines
471 B
PHP
26 lines
471 B
PHP
<?php
|
|
namespace Doctrine\Tests\Models\CompositeKeyInheritance;
|
|
|
|
/**
|
|
* @Entity
|
|
* @InheritanceType("JOINED")
|
|
* @DiscriminatorColumn(name="discr", type="string")
|
|
* @DiscriminatorMap({"child" = "JoinedChildClass",})
|
|
*/
|
|
class JoinedRootClass
|
|
{
|
|
/**
|
|
* @var string
|
|
* @Column(type="string")
|
|
* @Id
|
|
*/
|
|
protected $keyPart1 = 'part-1';
|
|
|
|
/**
|
|
* @var string
|
|
* @Column(type="string")
|
|
* @Id
|
|
*/
|
|
protected $keyPart2 = 'part-2';
|
|
}
|