RoutingRouteBooking.php 533B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Doctrine\Tests\Models\Routing;
  3. /**
  4. * @Entity
  5. */
  6. class RoutingRouteBooking
  7. {
  8. /**
  9. * @Id
  10. * @Column(type="integer")
  11. * @GeneratedValue
  12. */
  13. public $id;
  14. /**
  15. * @ManyToOne(targetEntity="RoutingRoute", inversedBy="bookings")
  16. * @JoinColumn(name="route_id", referencedColumnName="id")
  17. */
  18. public $route;
  19. /**
  20. * @Column(type="string")
  21. */
  22. public $passengerName = null;
  23. public function getPassengerName()
  24. {
  25. return $this->passengerName;
  26. }
  27. }