45 lines
697 B
PHP
45 lines
697 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\CMS;
|
|
|
|
/**
|
|
* Description of CmsEmployee
|
|
*
|
|
* @author robo
|
|
* @Entity
|
|
* @Table(name="cms_employees")
|
|
*/
|
|
class CmsEmployee
|
|
{
|
|
/**
|
|
* @Id
|
|
* @Column(type="integer")
|
|
* @GeneratedValue(strategy="AUTO")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @Column(type="string")
|
|
*/
|
|
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;
|
|
}
|
|
}
|
|
|