Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Company / CompanyEmployee.php
1 <?php
2
3 namespace Doctrine\Tests\Models\Company;
4
5 /**
6  * @Entity
7  * @Table(name="company_employees")
8  */
9 class CompanyEmployee extends CompanyPerson
10 {
11     /**
12      * @Column(type="integer")
13      */
14     private $salary;
15
16     /**
17      * @Column(type="string", length=255)
18      */
19     private $department;
20
21     /**
22      * @Column(type="datetime", nullable=true)
23      */
24     private $startDate;
25
26     /**
27      * @ManyToMany(targetEntity="CompanyContract", mappedBy="engineers", fetch="EXTRA_LAZY")
28      */
29     public $contracts;
30
31     /**
32      * @OneToMany(targetEntity="CompanyFlexUltraContract", mappedBy="salesPerson", fetch="EXTRA_LAZY")
33      */
34     public $soldContracts;
35
36     public function getSalary() {
37         return $this->salary;
38     }
39
40     public function setSalary($salary) {
41         $this->salary = $salary;
42     }
43
44     public function getDepartment() {
45         return $this->department;
46     }
47
48     public function setDepartment($dep) {
49         $this->department = $dep;
50     }
51
52     public function getStartDate() {
53         return $this->startDate;
54     }
55
56     public function setStartDate($date) {
57         $this->startDate = $date;
58     }
59 }