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