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_managers")
|
2009-02-18 10:59:11 +03:00
|
|
|
*/
|
2008-08-31 22:28:22 +04:00
|
|
|
class CompanyManager extends CompanyEmployee
|
|
|
|
{
|
2009-05-21 12:53:40 +04:00
|
|
|
/**
|
2011-09-13 07:59:24 +04:00
|
|
|
* @Column(type="string", length=250)
|
2009-02-18 10:59:11 +03:00
|
|
|
*/
|
2009-05-21 12:53:40 +04:00
|
|
|
private $title;
|
2011-12-20 01:56:19 +04:00
|
|
|
|
2009-10-22 23:12:00 +04:00
|
|
|
/**
|
|
|
|
* @OneToOne(targetEntity="CompanyCar", cascade={"persist"})
|
|
|
|
* @JoinColumn(name="car_id", referencedColumnName="id")
|
|
|
|
*/
|
|
|
|
private $car;
|
2009-05-21 12:53:40 +04:00
|
|
|
|
2011-12-22 02:56:17 +04:00
|
|
|
/**
|
|
|
|
* @ManyToMany(targetEntity="CompanyFlexContract", mappedBy="managers", fetch="EXTRA_LAZY")
|
|
|
|
*/
|
|
|
|
public $managedContracts;
|
|
|
|
|
2009-05-21 12:53:40 +04:00
|
|
|
public function getTitle() {
|
|
|
|
return $this->title;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setTitle($title) {
|
|
|
|
$this->title = $title;
|
|
|
|
}
|
2011-12-20 01:56:19 +04:00
|
|
|
|
2009-10-22 23:12:00 +04:00
|
|
|
public function getCar() {
|
|
|
|
return $this->car;
|
|
|
|
}
|
2011-12-20 01:56:19 +04:00
|
|
|
|
2009-10-22 23:12:00 +04:00
|
|
|
public function setCar(CompanyCar $car) {
|
|
|
|
$this->car = $car;
|
|
|
|
}
|
2011-12-22 02:56:17 +04:00
|
|
|
}
|