1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/tests/Doctrine/Tests/Models/Forum/ForumUser.php

42 lines
757 B
PHP
Raw Normal View History

2008-02-11 20:08:22 +03:00
<?php
namespace Doctrine\Tests\Models\Forum;
/**
* @Entity
* @Table(name="forum_users")
*/
class ForumUser
2008-02-11 20:08:22 +03:00
{
/**
* @Column(type="integer")
2010-04-10 02:00:36 +04:00
* @Id @GeneratedValue
*/
public $id;
/**
* @Column(type="string", length=50)
*/
public $username;
/**
* @OneToOne(targetEntity="ForumAvatar", cascade={"persist"})
* @JoinColumn(name="avatar_id", referencedColumnName="id")
*/
public $avatar;
public function getId() {
return $this->id;
}
public function getUsername() {
return $this->username;
}
public function getAvatar() {
return $this->avatar;
}
2009-07-08 12:43:50 +04:00
public function setAvatar(ForumAvatar $avatar) {
$this->avatar = $avatar;
}
2009-07-08 12:43:50 +04:00
}