33 lines
538 B
PHP
33 lines
538 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\Company;
|
|
|
|
/**
|
|
* @Entity
|
|
* @Table(name="company_cars")
|
|
*/
|
|
class CompanyCar
|
|
{
|
|
/**
|
|
* @Id @Column(type="integer")
|
|
* @GeneratedValue(strategy="AUTO")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @Column(type="string", length="50")
|
|
*/
|
|
private $brand;
|
|
|
|
public function __construct($brand = null) {
|
|
$this->brand = $brand;
|
|
}
|
|
|
|
public function getId() {
|
|
return $this->id;
|
|
}
|
|
|
|
public function getBrand() {
|
|
return $this->title;
|
|
}
|
|
} |