Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Navigation / NavCountry.php
diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Navigation/NavCountry.php b/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Navigation/NavCountry.php
new file mode 100644 (file)
index 0000000..fd37552
--- /dev/null
@@ -0,0 +1,39 @@
+<?php
+
+namespace Doctrine\Tests\Models\Navigation;
+
+/**
+ * @Entity
+* @Table(name="navigation_countries")
+ */
+class NavCountry
+{
+    /**
+     * @Id
+     * @Column(type="integer")
+     * @generatedValue
+     */
+    private $id;
+
+    /**
+     * @Column(type="string")
+     */
+    private $name;
+
+    /**
+     * @OneToMany(targetEntity="NavPointOfInterest", mappedBy="country")
+     */
+    private $pois;
+
+    function __construct($name) {
+        $this->name = $name;
+    }
+
+    public function getId() {
+        return $this->id;
+    }
+
+    public function getName() {
+        return $this->name;
+    }
+}
\ No newline at end of file