2008-05-08 18:17:35 +04:00
|
|
|
<?php
|
2009-01-04 19:15:32 +03:00
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
namespace Doctrine\Tests\Models\Forum;
|
2009-01-04 19:15:32 +03:00
|
|
|
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
|
|
|
* Represents a board in a forum.
|
|
|
|
*
|
|
|
|
* @author robo
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Entity
|
|
|
|
* @Table(name="forum_boards")
|
2009-01-05 20:25:56 +03:00
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
class ForumBoard
|
2008-07-21 00:13:24 +04:00
|
|
|
{
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Id
|
|
|
|
* @Column(type="integer")
|
2009-01-05 20:25:56 +03:00
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
public $id;
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Column(type="integer")
|
2009-01-05 20:25:56 +03:00
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
public $position;
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
2010-04-10 02:00:36 +04:00
|
|
|
* @ManyToOne(targetEntity="ForumCategory", inversedBy="boards")
|
2009-05-29 14:23:13 +04:00
|
|
|
* @JoinColumn(name="category_id", referencedColumnName="id")
|
2009-01-05 20:25:56 +03:00
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
public $category;
|
2008-05-08 18:17:35 +04:00
|
|
|
}
|