1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests/Doctrine/Tests/Models/CMS/CmsEmployee.php

45 lines
665 B
PHP
Raw Normal View History

<?php
namespace Doctrine\Tests\Models\CMS;
/**
* Description of CmsEmployee
*
* @author robo
* @Entity
* @Table(name="cms_employees")
*/
class CmsEmployee
{
/**
* @Id
* @Column(type="integer")
2010-04-10 02:00:36 +04:00
* @GeneratedValue
*/
private $id;
/**
2010-04-10 02:00:36 +04:00
* @Column
*/
private $name;
/**
* @OneToOne(targetEntity="CmsEmployee")
* @JoinColumn(name="spouse_id", referencedColumnName="id")
*/
private $spouse;
public function getId() {
return $this->id;
}
public function getName() {
return $this->name;
}
public function getSpouse() {
return $this->spouse;
}
}