12b5e79ff2
Field with type=simple_array in a joined inheritance gets overridden by empty array in the hydrator
30 lines
535 B
PHP
30 lines
535 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\Issue5989;
|
|
|
|
/**
|
|
* @Entity
|
|
* @Table(name="issue5989_persons")
|
|
* @InheritanceType("JOINED")
|
|
* @DiscriminatorColumn(name="discr", type="string")
|
|
* @DiscriminatorMap({
|
|
* "person" = "Issue5989Person",
|
|
* "manager" = "Issue5989Manager",
|
|
* "employee" = "Issue5989Employee"
|
|
* })
|
|
*/
|
|
class Issue5989Person
|
|
{
|
|
/**
|
|
* @Id
|
|
* @Column(type="integer")
|
|
* @GeneratedValue
|
|
*/
|
|
private $id;
|
|
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
}
|