Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Routing / RoutingRouteBooking.php
diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Routing/RoutingRouteBooking.php b/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Routing/RoutingRouteBooking.php
new file mode 100644 (file)
index 0000000..9b862fc
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+namespace Doctrine\Tests\Models\Routing;
+
+/**
+ * @Entity
+ */
+class RoutingRouteBooking
+{
+    /**
+     * @Id
+     * @Column(type="integer")
+     * @GeneratedValue
+     */
+    public $id;
+
+    /**
+     * @ManyToOne(targetEntity="RoutingRoute", inversedBy="bookings")
+     * @JoinColumn(name="route_id", referencedColumnName="id")
+     */
+    public $route;
+
+    /**
+     * @Column(type="string")
+     */
+    public $passengerName = null;
+
+    public function getPassengerName()
+    {
+        return $this->passengerName;
+    }
+}
\ No newline at end of file