1
0
mirror of synced 2025-02-03 05:49:25 +03:00
doctrine2/tests/Doctrine/Tests/Models/DDC3699/DDC3699RelationOne.php

44 lines
646 B
PHP

<?php
namespace Doctrine\Tests\Models\DDC3699;
/**
* @Entity
* @Table(name="ddc3699_relation_one")
*/
class DDC3699RelationOne
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="integer")
*/
protected $id;
/**
* @OneToOne(targetEntity="DDC3699Child", mappedBy="oneRelation")
*/
protected $child;
public function getId()
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
}
public function getChild()
{
return $this->child;
}
public function setChild($child)
{
$this->child = $child;
}
}