3 namespace Doctrine\Tests\ORM\Functional\Ticket;
5 require_once __DIR__ . '/../../../TestInit.php';
7 class DDC144Test extends \Doctrine\Tests\OrmFunctionalTestCase
9 protected function setUp() {
11 //$this->_em->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger);
13 $this->_schemaTool->createSchema(array(
14 $this->_em->getClassMetadata(__NAMESPACE__ . '\DDC144FlowElement'),
15 // $this->_em->getClassMetadata(__NAMESPACE__ . '\DDC144Expression'),
16 $this->_em->getClassMetadata(__NAMESPACE__ . '\DDC144Operand'),
24 public function testIssue()
27 $operand = new DDC144Operand;
28 $operand->property = 'flowValue';
29 $operand->operandProperty = 'operandValue';
30 $this->_em->persist($operand);
38 * @Table(name="ddc144_flowelements")
39 * @InheritanceType("JOINED")
40 * @DiscriminatorColumn(type="string", name="discr")
41 * @DiscriminatorMap({"flowelement" = "DDC144FlowElement", "operand" = "DDC144Operand"})
43 class DDC144FlowElement {
45 * @Id @Column(type="integer") @GeneratedValue
53 abstract class DDC144Expression extends DDC144FlowElement {
54 abstract function method();
57 /** @Entity @Table(name="ddc144_operands") */
58 class DDC144Operand extends DDC144Expression {
60 public $operandProperty;