Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace VisualFoodLog\LogBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\Common\Collections\ArrayCollection;
- /**
- * VisualFoodLog\LogBundle\Entity\LogItem
- *
- * @ORM\Table(name="log_items")
- * @ORM\Entity(repositoryClass="VisualFoodLog\LogBundle\Entity\LogItemRepository")
- */
- class LogItem
- {
- /**
- * @var integer $id
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string $title
- *
- * @ORM\Column(name="title", type="string", length=255)
- */
- private $title;
- /**
- * @var text $description
- *
- * @ORM\Column(name="description", type="text")
- */
- private $description;
- /**
- * @ORM/OneToMany(targetEntity="LogItemMedia", mappedBy="logItem")
- */
- private $media;
- /**
- * @var integer $user
- * @ORM/ManyToOne(targetEntity="User", inversedBy="log_items")
- * @ORM\JoinColumn(name="user", referencedColumnName="id")
- */
- private $user;
- /**
- * @var datetime $created_at
- *
- * @ORM\Column(name="created_at", type="datetime")
- */
- private $created_at;
- /**
- * @var datetime $updated_at
- *
- * @ORM\Column(name="updated_at", type="datetime")
- */
- private $updated_at;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set title
- *
- * @param string $title
- */
- public function setTitle($title)
- {
- $this->title = $title;
- }
- /**
- * Get title
- *
- * @return string
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * Set description
- *
- * @param text $description
- */
- public function setDescription($description)
- {
- $this->description = $description;
- }
- /**
- * Get description
- *
- * @return text
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Set user_id
- *
- * @param integer $userId
- */
- public function setUserId($userId)
- {
- $this->user_id = $userId;
- }
- /**
- * Get user_id
- *
- * @return integer
- */
- public function getUserId()
- {
- return $this->user_id;
- }
- /**
- * Set created_at
- *
- * @param datetime $createdAt
- */
- public function setCreatedAt($createdAt)
- {
- $this->created_at = $createdAt;
- }
- /**
- * Get created_at
- *
- * @return datetime
- */
- public function getCreatedAt()
- {
- return $this->created_at;
- }
- /**
- * Set updated_at
- *
- * @param datetime $updatedAt
- */
- public function setUpdatedAt($updatedAt)
- {
- $this->updated_at = $updatedAt;
- }
- /**
- * Get updated_at
- *
- * @return datetime
- */
- public function getUpdatedAt()
- {
- return $this->updated_at;
- }
- public function __construct()
- {
- $this->media = new ArrayCollection();
- }
- }
Add Comment
Please, Sign In to add comment