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