Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Forum / ForumBoard.php
diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Forum/ForumBoard.php b/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Forum/ForumBoard.php
new file mode 100644 (file)
index 0000000..707d363
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+namespace Doctrine\Tests\Models\Forum;
+
+/**
+ * Represents a board in a forum.
+ *
+ * @author robo
+ * @Entity
+ * @Table(name="forum_boards")
+ */
+class ForumBoard
+{
+    /**
+     * @Id
+     * @Column(type="integer")
+     */
+    public $id;
+    /**
+     * @Column(type="integer")
+     */
+    public $position;
+    /**
+     * @ManyToOne(targetEntity="ForumCategory", inversedBy="boards")
+     * @JoinColumn(name="category_id", referencedColumnName="id")
+     */
+    public $category;
+}