1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/tests/Doctrine/Tests/Models/Company/CompanyEmployee.php

60 lines
1.1 KiB
PHP
Raw Normal View History

2008-08-31 22:28:22 +04:00
<?php
namespace Doctrine\Tests\Models\Company;
/**
* @Entity
* @Table(name="company_employees")
*/
class CompanyEmployee extends CompanyPerson
2008-08-31 22:28:22 +04:00
{
/**
* @Column(type="integer")
*/
private $salary;
2008-08-31 22:28:22 +04:00
/**
* @Column(type="string", length=255)
*/
private $department;
2011-12-20 01:56:19 +04:00
/**
* @Column(type="datetime", nullable=true)
*/
private $startDate;
/**
* @ManyToMany(targetEntity="CompanyContract", mappedBy="engineers", fetch="EXTRA_LAZY")
*/
public $contracts;
/**
* @OneToMany(targetEntity="CompanyFlexUltraContract", mappedBy="salesPerson", fetch="EXTRA_LAZY")
*/
public $soldContracts;
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;
}
public function getStartDate() {
return $this->startDate;
}
public function setStartDate($date) {
$this->startDate = $date;
}
}