CmsEmployee.php 697 Bytes
Newer Older
1 2 3 4 5 6 7 8
<?php

namespace Doctrine\Tests\Models\CMS;

/**
 * Description of CmsEmployee
 *
 * @author robo
9 10
 * @Entity
 * @Table(name="cms_employees")
11 12 13 14
 */
class CmsEmployee
{
    /**
15 16
     * @Id
     * @Column(type="integer")
17
     * @GeneratedValue(strategy="AUTO")
18 19 20 21
     */
    private $id;

    /**
22
     * @Column(type="string")
23 24 25 26
     */
    private $name;

    /**
27 28
     * @OneToOne(targetEntity="CmsEmployee")
     * @JoinColumn(name="spouse_id", referencedColumnName="id")
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
     */
    private $spouse;

    public function getId() {
        return $this->id;
    }

    public function getName() {
        return $this->name;
    }

    public function getSpouse() {
        return $this->spouse;
    }
}