1
0
mirror of synced 2025-01-09 18:47:10 +03:00
doctrine2/tests/Doctrine/Tests/Models/DDC2504/DDC2504OtherClass.php
2015-01-12 21:37:53 +01:00

34 lines
641 B
PHP

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