| 1 | <?php |
||
| 10 | class Driver |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @ORM\Column(name="id", type="integer") |
||
| 14 | * @ORM\Id |
||
| 15 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 16 | */ |
||
| 17 | private $id; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @ORM\ManyToOne(targetEntity="Car") |
||
| 21 | */ |
||
| 22 | private $car; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @ORM\ManyToOne(targetEntity="Car") |
||
| 26 | * @ORM\JoinColumn(nullable=true) |
||
| 27 | */ |
||
| 28 | private $secondCar; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @ORM\Column(type="string") |
||
| 32 | * @var type |
||
| 33 | */ |
||
| 34 | private $name; |
||
| 35 | |||
| 36 | public function getId() |
||
| 40 | |||
| 41 | public function setCar(Car $car) |
||
| 45 | |||
| 46 | public function getCar() |
||
| 50 | |||
| 51 | public function getName() |
||
| 55 | |||
| 56 | public function setName($name) |
||
| 60 | |||
| 61 | public function setSecondCar($secondCar) |
||
| 65 | |||
| 66 | public function getSecondCar() |
||
| 70 | } |
||
| 71 |