Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Activity
- *
- * @ORM\Table(name="activity", indexes={@ORM\Index(name="fk_activity_master_contact_idx", columns={"master_contact_id"}), @ORM\Index(name="fk_activity_user1_idx", columns={"user_id"}), @ORM\Index(name="fk_activity_activity_type1_idx", columns={"activity_type_id"}), @ORM\Index(name="fk_activity_activity_channel1_idx", columns={"activity_channel_id"})})
- * @ORM\Entity
- */
- class Activity
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer", nullable=false)
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="IDENTITY")
- */
- private $id;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="created", type="datetime", nullable=true)
- */
- private $created = 'CURRENT_TIMESTAMP';
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="modified", type="datetime", nullable=true)
- */
- private $modified;
- /**
- * @var string
- *
- * @ORM\Column(name="description", type="text", length=65535, nullable=true)
- */
- private $description;
- /**
- * @var \ActivityChannel
- *
- * @ORM\ManyToOne(targetEntity="ActivityChannel")
- * @ORM\JoinColumns({
- * @ORM\JoinColumn(name="activity_channel_id", referencedColumnName="id")
- * })
- */
- private $activityChannel;
- /**
- * @var \ActivityType
- *
- * @ORM\ManyToOne(targetEntity="ActivityType")
- * @ORM\JoinColumns({
- * @ORM\JoinColumn(name="activity_type_id", referencedColumnName="id")
- * })
- */
- private $activityType;
- /**
- * @var \MasterContact
- *
- * @ORM\ManyToOne(targetEntity="MasterContact")
- * @ORM\JoinColumns({
- * @ORM\JoinColumn(name="master_contact_id", referencedColumnName="id")
- * })
- */
- private $masterContact;
- /**
- * @var \User
- *
- * @ORM\ManyToOne(targetEntity="User")
- * @ORM\JoinColumns({
- * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
- * })
- */
- private $user;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set created
- *
- * @param \DateTime $created
- *
- * @return Activity
- */
- public function setCreated($created)
- {
- $this->created = $created;
- return $this;
- }
- /**
- * Get created
- *
- * @return \DateTime
- */
- public function getCreated()
- {
- return $this->created;
- }
- /**
- * Set modified
- *
- * @param \DateTime $modified
- *
- * @return Activity
- */
- public function setModified($modified)
- {
- $this->modified = $modified;
- return $this;
- }
- /**
- * Get modified
- *
- * @return \DateTime
- */
- public function getModified()
- {
- return $this->modified;
- }
- /**
- * Set description
- *
- * @param string $description
- *
- * @return Activity
- */
- public function setDescription($description)
- {
- $this->description = $description;
- return $this;
- }
- /**
- * Get description
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Set activityChannel
- *
- * @param \AppBundle\Entity\ActivityChannel $activityChannel
- *
- * @return Activity
- */
- public function setActivityChannel(\AppBundle\Entity\ActivityChannel $activityChannel = null)
- {
- $this->activityChannel = $activityChannel;
- return $this;
- }
- /**
- * Get activityChannel
- *
- * @return \AppBundle\Entity\ActivityChannel
- */
- public function getActivityChannel()
- {
- return $this->activityChannel;
- }
- /**
- * Set activityType
- *
- * @param \AppBundle\Entity\ActivityType $activityType
- *
- * @return Activity
- */
- public function setActivityType(\AppBundle\Entity\ActivityType $activityType = null)
- {
- $this->activityType = $activityType;
- return $this;
- }
- /**
- * Get activityType
- *
- * @return \AppBundle\Entity\ActivityType
- */
- public function getActivityType()
- {
- return $this->activityType;
- }
- /**
- * Set masterContact
- *
- * @param \AppBundle\Entity\MasterContact $masterContact
- *
- * @return Activity
- */
- public function setMasterContact(\AppBundle\Entity\MasterContact $masterContact = null)
- {
- $this->masterContact = $masterContact;
- return $this;
- }
- /**
- * Get masterContact
- *
- * @return \AppBundle\Entity\MasterContact
- */
- public function getMasterContact()
- {
- return $this->masterContact;
- }
- /**
- * Set user
- *
- * @param \AppBundle\Entity\User $user
- *
- * @return Activity
- */
- public function setUser(\AppBundle\Entity\User $user = null)
- {
- $this->user = $user;
- return $this;
- }
- /**
- * Get user
- *
- * @return \AppBundle\Entity\User
- */
- public function getUser()
- {
- return $this->user;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement