Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Forum / ForumCategory.php
1 <?php
2
3 namespace Doctrine\Tests\Models\Forum;
4
5 /**
6  * @Entity
7  * @Table(name="forum_categories")
8  */
9 class ForumCategory
10 {
11     /**
12      * @Column(type="integer")
13      * @Id
14      */
15     private $id;
16     /**
17      * @Column(type="integer")
18      */
19     public $position;
20     /**
21      * @Column(type="string", length=255)
22      */
23     public $name;
24     /**
25      * @OneToMany(targetEntity="ForumBoard", mappedBy="category")
26      */
27     public $boards;
28
29     public function getId() {
30         return $this->id;
31     }
32 }