<?phpnamespace Uniski\ResourceBundle\Entity;use Doctrine\ORM\Mapping as ORM;/*** @ORM\Entity* @ORM\Table("document")* @ORM\HasLifecycleCallbacks()*/class Document extends BaseUploadEntity { const PRIVATE_DOCUMENT = 'private_document'; /** * @var integer * * @ORM\Id * @ORM\Column(name="id", type="integer") * @ORM\GeneratedValue(strategy="IDENTITY") */ private $id; /** * @var string * @ORM\Column(name="name", type="string") */ protected $name; /** * @var string * @ORM\Column(name="description", type="string", nullable=true) */ protected $description; /** * @var Uniski\UserBundle\Entity\User * @ORM\ManyToOne(targetEntity="Uniski\UserBundle\Entity\User") */ protected $user; function __construct() { $this->type = 'document'; } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set name * * @param string $name * * @return Image */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set description * * @param string $description * * @return Image */ public function setDescription($description) { $this->description = $description; return $this; } /** * Get description * * @return string */ public function getDescription() { return $this->description; } /** * Gets the value of user. * * @return Uniski\UserBundle\Entity\User */ public function getUser() { return $this->user; } /** * Sets the value of user. * * @param Uniski\UserBundle\Entity\User $user the user * * @return self */ public function setUser($user) { $this->user = $user; return $this; }}