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;
|
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
|
|
|
|
|
|
|
public function getTitle() {
|
|
|
|
return $this->title;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setTitle($title) {
|
|
|
|
$this->title = $title;
|
|
|
|
}
|
2009-10-22 23:12:00 +04:00
|
|
|
|
|
|
|
public function getCar() {
|
|
|
|
return $this->car;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setCar(CompanyCar $car) {
|
|
|
|
$this->car = $car;
|
|
|
|
}
|
2009-02-18 10:59:11 +03:00
|
|
|
}
|