2010-01-31 17:35:10 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\Routing;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Entity
|
|
|
|
*/
|
|
|
|
class RoutingLeg
|
|
|
|
{
|
|
|
|
/**
|
2010-04-10 02:00:36 +04:00
|
|
|
* @Id @generatedValue
|
2010-01-31 17:35:10 +03:00
|
|
|
* @column(type="integer")
|
|
|
|
*/
|
|
|
|
public $id;
|
|
|
|
|
|
|
|
/**
|
2010-04-10 02:00:36 +04:00
|
|
|
* @ManyToOne(targetEntity="RoutingLocation")
|
2010-01-31 17:35:10 +03:00
|
|
|
* @JoinColumn(name="from_id", referencedColumnName="id")
|
|
|
|
*/
|
|
|
|
public $fromLocation;
|
|
|
|
|
|
|
|
/**
|
2010-04-10 02:00:36 +04:00
|
|
|
* @ManyToOne(targetEntity="RoutingLocation")
|
2010-01-31 17:35:10 +03:00
|
|
|
* @JoinColumn(name="to_id", referencedColumnName="id")
|
|
|
|
*/
|
|
|
|
public $toLocation;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Column(type="datetime")
|
|
|
|
*/
|
|
|
|
public $departureDate;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Column(type="datetime")
|
|
|
|
*/
|
|
|
|
public $arrivalDate;
|
|
|
|
}
|