1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests/Doctrine/Tests/Models/Company/CompanyCar.php

33 lines
524 B
PHP
Raw Normal View History

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