1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests/Doctrine/Tests/Models/Routing/RoutingLeg.php
Roman S. Borschel 7cc56c45d3 [DDC-193] Fixed.
2010-04-10 00:00:36 +02:00

37 lines
634 B
PHP

<?php
namespace Doctrine\Tests\Models\Routing;
/**
* @Entity
*/
class RoutingLeg
{
/**
* @Id @generatedValue
* @column(type="integer")
*/
public $id;
/**
* @ManyToOne(targetEntity="RoutingLocation")
* @JoinColumn(name="from_id", referencedColumnName="id")
*/
public $fromLocation;
/**
* @ManyToOne(targetEntity="RoutingLocation")
* @JoinColumn(name="to_id", referencedColumnName="id")
*/
public $toLocation;
/**
* @Column(type="datetime")
*/
public $departureDate;
/**
* @Column(type="datetime")
*/
public $arrivalDate;
}