1
0
mirror of synced 2025-01-10 11:07:10 +03:00
doctrine2/tests/Doctrine/Tests/Models/DDC2504/DDC2504OtherClass.php

28 lines
515 B
PHP
Raw Normal View History

<?php
namespace Doctrine\Tests\Models\DDC2504;
/**
* @Entity
*/
class DDC2504OtherClass
{
/**
* @Column(type="integer")
* @Id @GeneratedValue
*/
public $id;
/**
* @var Doctrine\Tests\Models\DDC2504\DDC2504ChildClass
*
* @OneToMany(targetEntity="DDC2504ChildClass", mappedBy="other", fetch="EXTRA_LAZY")
*/
public $childClasses;
public function __construct()
{
$this->childClasses = new \Doctrine\Common\Collections\ArrayCollection();
}
}