Added UploadNamespace and UploadedFile entities

Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely POLONKAI (W00d5t0ck)
2012-08-31 22:16:42 +02:00
parent fc1144ad29
commit d9fe0d8bcf
18 changed files with 375 additions and 19 deletions

View File

@@ -516,4 +516,36 @@ class UserData
{
return $this->favouriteTopics->contains($topic);
}
/**
* The avatar image of the user
*
* @var UploadedFile $avatarImage
*
* @ORM\ManyToOne(targetEntity="KekRozsak\FrontBundle\Entity\UploadedFile")
* @ORM\JoinColumn(name="avatar_image_id", nullable=true)
*/
protected $avatarImage;
/**
* Set avaratImage
*
* @param KekRozsak\FrontBundle\Entity\UploadedFile $avatarImage
* @return UserData
*/
public function setAvatarImage(UploadedFile $avatarImage)
{
$this->avatarImage = $avatarImage;
return $this;
}
/**
* Get avatarImage
*
* @return KekRozsak\FrontBundle\Entity\UploadedFile
*/
public function getAvatarImage()
{
return $this->avatarImage;
}
}