Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Routing / RoutingLeg.php
diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Routing/RoutingLeg.php b/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Routing/RoutingLeg.php
new file mode 100644 (file)
index 0000000..a130e7b
--- /dev/null
@@ -0,0 +1,37 @@
+<?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;
+}
\ No newline at end of file