2010-02-15 00:21:43 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\Routing;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Entity
|
|
|
|
*/
|
|
|
|
class RoutingRouteBooking
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Id
|
|
|
|
* @Column(type="integer")
|
2010-04-10 02:00:36 +04:00
|
|
|
* @GeneratedValue
|
2010-02-15 00:21:43 +03:00
|
|
|
*/
|
|
|
|
public $id;
|
|
|
|
|
|
|
|
/**
|
2010-04-10 02:00:36 +04:00
|
|
|
* @ManyToOne(targetEntity="RoutingRoute", inversedBy="bookings")
|
2010-02-15 00:21:43 +03:00
|
|
|
* @JoinColumn(name="route_id", referencedColumnName="id")
|
|
|
|
*/
|
|
|
|
public $route;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Column(type="string")
|
|
|
|
*/
|
|
|
|
public $passengerName = null;
|
|
|
|
|
|
|
|
public function getPassengerName()
|
|
|
|
{
|
|
|
|
return $this->passengerName;
|
|
|
|
}
|
|
|
|
}
|