Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Forum / ForumCategory.php
diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Forum/ForumCategory.php b/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Forum/ForumCategory.php
new file mode 100644 (file)
index 0000000..f04f128
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+namespace Doctrine\Tests\Models\Forum;
+
+/**
+ * @Entity
+ * @Table(name="forum_categories")
+ */
+class ForumCategory
+{
+    /**
+     * @Column(type="integer")
+     * @Id
+     */
+    private $id;
+    /**
+     * @Column(type="integer")
+     */
+    public $position;
+    /**
+     * @Column(type="string", length=255)
+     */
+    public $name;
+    /**
+     * @OneToMany(targetEntity="ForumBoard", mappedBy="category")
+     */
+    public $boards;
+
+    public function getId() {
+        return $this->id;
+    }
+}