ForumEntry.php 391 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Doctrine\Tests\Models\Forum;
  3. /**
  4. * @Entity
  5. * @Table(name="forum_entries")
  6. */
  7. class ForumEntry
  8. {
  9. /**
  10. * @Id
  11. * @Column(type="integer")
  12. * @GeneratedValue(strategy="AUTO")
  13. */
  14. public $id;
  15. /**
  16. * @Column(type="string", length=50)
  17. */
  18. public $topic;
  19. public function &getTopicByReference() {
  20. return $this->topic;
  21. }
  22. }