2008-08-31 22:28:22 +04:00
|
|
|
<?php
|
|
|
|
|
2009-02-18 10:59:11 +03:00
|
|
|
namespace Doctrine\Tests\Models\Company;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @DoctrineEntity
|
|
|
|
* @DoctrineTable(name="company_employee")
|
|
|
|
* @DoctrineInheritanceType("joined")
|
|
|
|
* @DoctrineDiscriminatorColumn(name="dtype", type="varchar", length=20)
|
|
|
|
* @DoctrineDiscriminatorMap({
|
|
|
|
"emp" = "Doctrine\Tests\Models\Company\CompanyEmployee",
|
|
|
|
"man" = "Doctrine\Tests\Models\Company\CompanyManager"})
|
|
|
|
* @DoctrineSubclasses({"Doctrine\Tests\Models\Company\CompanyManager"})
|
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
class CompanyEmployee
|
2008-08-31 22:28:22 +04:00
|
|
|
{
|
2009-02-18 10:59:11 +03:00
|
|
|
/**
|
|
|
|
* @DoctrineId
|
|
|
|
* @DoctrineColumn(type="integer")
|
|
|
|
* @DoctrineIdGenerator("auto")
|
|
|
|
*/
|
|
|
|
public $id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @DoctrineColumn(type="double")
|
|
|
|
*/
|
|
|
|
public $salary;
|
2008-08-31 22:28:22 +04:00
|
|
|
|
2009-02-18 10:59:11 +03:00
|
|
|
/**
|
|
|
|
* @DoctrineColumn(type="varchar", length=255)
|
|
|
|
*/
|
|
|
|
public $department;
|
|
|
|
}
|