2009-10-22 23:12:00 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\Company;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Entity
|
|
|
|
* @Table(name="company_cars")
|
|
|
|
*/
|
|
|
|
class CompanyCar
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Id @Column(type="integer")
|
|
|
|
* @GeneratedValue(strategy="AUTO")
|
|
|
|
*/
|
|
|
|
private $id;
|
|
|
|
|
|
|
|
/**
|
2011-09-13 07:59:24 +04:00
|
|
|
* @Column(type="string", length=50)
|
2009-10-22 23:12:00 +04:00
|
|
|
*/
|
|
|
|
private $brand;
|
|
|
|
|
|
|
|
public function __construct($brand = null) {
|
|
|
|
$this->brand = $brand;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getId() {
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getBrand() {
|
|
|
|
return $this->title;
|
|
|
|
}
|
|
|
|
}
|