RoutingLeg.php 634B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Doctrine\Tests\Models\Routing;
  3. /**
  4. * @Entity
  5. */
  6. class RoutingLeg
  7. {
  8. /**
  9. * @Id @generatedValue
  10. * @column(type="integer")
  11. */
  12. public $id;
  13. /**
  14. * @ManyToOne(targetEntity="RoutingLocation")
  15. * @JoinColumn(name="from_id", referencedColumnName="id")
  16. */
  17. public $fromLocation;
  18. /**
  19. * @ManyToOne(targetEntity="RoutingLocation")
  20. * @JoinColumn(name="to_id", referencedColumnName="id")
  21. */
  22. public $toLocation;
  23. /**
  24. * @Column(type="datetime")
  25. */
  26. public $departureDate;
  27. /**
  28. * @Column(type="datetime")
  29. */
  30. public $arrivalDate;
  31. }