1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests/Doctrine/Tests/Models/Company/CompanyManager.php

43 lines
825 B
PHP
Raw Normal View History

2008-08-31 22:28:22 +04:00
<?php
namespace Doctrine\Tests\Models\Company;
/**
* @Entity
* @Table(name="company_managers")
*/
2008-08-31 22:28:22 +04:00
class CompanyManager extends CompanyEmployee
{
/**
* @Column(type="string", length=250)
*/
private $title;
2011-12-20 01:56:19 +04:00
/**
* @OneToOne(targetEntity="CompanyCar", cascade={"persist"})
* @JoinColumn(name="car_id", referencedColumnName="id")
*/
private $car;
/**
* @ManyToMany(targetEntity="CompanyFlexContract", mappedBy="managers", fetch="EXTRA_LAZY")
*/
public $managedContracts;
public function getTitle() {
return $this->title;
}
public function setTitle($title) {
$this->title = $title;
}
2011-12-20 01:56:19 +04:00
public function getCar() {
return $this->car;
}
2011-12-20 01:56:19 +04:00
public function setCar(CompanyCar $car) {
$this->car = $car;
}
}