Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Forum / ForumBoard.php
1 <?php
2
3 namespace Doctrine\Tests\Models\Forum;
4
5 /**
6  * Represents a board in a forum.
7  *
8  * @author robo
9  * @Entity
10  * @Table(name="forum_boards")
11  */
12 class ForumBoard
13 {
14     /**
15      * @Id
16      * @Column(type="integer")
17      */
18     public $id;
19     /**
20      * @Column(type="integer")
21      */
22     public $position;
23     /**
24      * @ManyToOne(targetEntity="ForumCategory", inversedBy="boards")
25      * @JoinColumn(name="category_id", referencedColumnName="id")
26      */
27     public $category;
28 }