Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Navigation / NavPhotos.php
diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Navigation/NavPhotos.php b/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Navigation/NavPhotos.php
new file mode 100644 (file)
index 0000000..25858d0
--- /dev/null
@@ -0,0 +1,48 @@
+<?php
+
+namespace Doctrine\Tests\Models\Navigation;
+
+/**
+ * @Entity
+ * @Table(name="navigation_photos")
+ */
+class NavPhotos
+{
+    /**
+     * @Id
+     * @column(type="integer")
+     * @generatedValue
+     */
+    private $id;
+
+    /**
+     * @ManyToOne(targetEntity="NavPointOfInterest")
+     * @JoinColumns({
+     *   @JoinColumn(name="poi_long", referencedColumnName="nav_long"),
+     *   @JoinColumn(name="poi_lat", referencedColumnName="nav_lat")
+     * })
+     */
+    private $poi;
+
+    /**
+     * @column(type="string", name="file_name")
+     */
+    private $file;
+
+    function __construct($poi, $file) {
+        $this->poi = $poi;
+        $this->file = $file;
+    }
+
+    public function getId() {
+        return $this->id;
+    }
+
+    public function getPointOfInterest() {
+        return $this->poi;
+    }
+
+    public function getFile() {
+        return $this->file;
+    }
+}
\ No newline at end of file