2008-08-31 22:28:22 +04:00
|
|
|
<?php
|
|
|
|
|
2009-02-18 10:59:11 +03:00
|
|
|
namespace Doctrine\Tests\Models\Company;
|
|
|
|
|
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Entity
|
|
|
|
* @Table(name="company_employees")
|
2009-02-18 10:59:11 +03:00
|
|
|
*/
|
2009-05-21 12:53:40 +04:00
|
|
|
class CompanyEmployee extends CompanyPerson
|
2008-08-31 22:28:22 +04:00
|
|
|
{
|
2009-02-18 10:59:11 +03:00
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Column(type="integer")
|
2009-02-18 10:59:11 +03:00
|
|
|
*/
|
2009-05-21 12:53:40 +04:00
|
|
|
private $salary;
|
2008-08-31 22:28:22 +04:00
|
|
|
|
2009-02-18 10:59:11 +03:00
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Column(type="string", length=255)
|
2009-02-18 10:59:11 +03:00
|
|
|
*/
|
2009-05-21 12:53:40 +04:00
|
|
|
private $department;
|
2011-12-20 01:56:19 +04:00
|
|
|
|
2011-08-28 20:48:15 +04:00
|
|
|
/**
|
|
|
|
* @Column(type="datetime", nullable=true)
|
|
|
|
*/
|
|
|
|
private $startDate;
|
2009-05-21 12:53:40 +04:00
|
|
|
|
2011-12-22 02:56:17 +04:00
|
|
|
/**
|
|
|
|
* @ManyToMany(targetEntity="CompanyContract", mappedBy="engineers", fetch="EXTRA_LAZY")
|
|
|
|
*/
|
|
|
|
public $contracts;
|
|
|
|
|
2011-12-22 23:50:57 +04:00
|
|
|
/**
|
|
|
|
* @OneToMany(targetEntity="CompanyFlexUltraContract", mappedBy="salesPerson", fetch="EXTRA_LAZY")
|
|
|
|
*/
|
|
|
|
public $soldContracts;
|
|
|
|
|
2009-05-21 12:53:40 +04:00
|
|
|
public function getSalary() {
|
|
|
|
return $this->salary;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setSalary($salary) {
|
|
|
|
$this->salary = $salary;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getDepartment() {
|
|
|
|
return $this->department;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setDepartment($dep) {
|
|
|
|
$this->department = $dep;
|
|
|
|
}
|
2011-08-28 20:48:15 +04:00
|
|
|
|
|
|
|
public function getStartDate() {
|
|
|
|
return $this->startDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setStartDate($date) {
|
|
|
|
$this->startDate = $date;
|
|
|
|
}
|
2011-12-22 02:56:17 +04:00
|
|
|
}
|