1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests/Doctrine/Tests/Models/Forum/ForumUser.php
Roman S. Borschel 7cc56c45d3 [DDC-193] Fixed.
2010-04-10 00:00:36 +02:00

42 lines
757 B
PHP

<?php
namespace Doctrine\Tests\Models\Forum;
/**
* @Entity
* @Table(name="forum_users")
*/
class ForumUser
{
/**
* @Column(type="integer")
* @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;
}
public function setAvatar(ForumAvatar $avatar) {
$this->avatar = $avatar;
}
}