Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.09 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8. * Activity
  9. *
  10. * @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"})})
  11. * @ORM\Entity
  12. */
  13. class Activity
  14. {
  15. /**
  16. * @var integer
  17. *
  18. * @ORM\Column(name="id", type="integer", nullable=false)
  19. * @ORM\Id
  20. * @ORM\GeneratedValue(strategy="IDENTITY")
  21. */
  22. private $id;
  23.  
  24. /**
  25. * @var \DateTime
  26. *
  27. * @ORM\Column(name="created", type="datetime", nullable=true)
  28. */
  29. private $created = 'CURRENT_TIMESTAMP';
  30.  
  31. /**
  32. * @var \DateTime
  33. *
  34. * @ORM\Column(name="modified", type="datetime", nullable=true)
  35. */
  36. private $modified;
  37.  
  38. /**
  39. * @var string
  40. *
  41. * @ORM\Column(name="description", type="text", length=65535, nullable=true)
  42. */
  43. private $description;
  44.  
  45. /**
  46. * @var \ActivityChannel
  47. *
  48. * @ORM\ManyToOne(targetEntity="ActivityChannel")
  49. * @ORM\JoinColumns({
  50. * @ORM\JoinColumn(name="activity_channel_id", referencedColumnName="id")
  51. * })
  52. */
  53. private $activityChannel;
  54.  
  55. /**
  56. * @var \ActivityType
  57. *
  58. * @ORM\ManyToOne(targetEntity="ActivityType")
  59. * @ORM\JoinColumns({
  60. * @ORM\JoinColumn(name="activity_type_id", referencedColumnName="id")
  61. * })
  62. */
  63. private $activityType;
  64.  
  65. /**
  66. * @var \MasterContact
  67. *
  68. * @ORM\ManyToOne(targetEntity="MasterContact")
  69. * @ORM\JoinColumns({
  70. * @ORM\JoinColumn(name="master_contact_id", referencedColumnName="id")
  71. * })
  72. */
  73. private $masterContact;
  74.  
  75. /**
  76. * @var \User
  77. *
  78. * @ORM\ManyToOne(targetEntity="User")
  79. * @ORM\JoinColumns({
  80. * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
  81. * })
  82. */
  83. private $user;
  84.  
  85. /**
  86. * Get id
  87. *
  88. * @return integer
  89. */
  90. public function getId()
  91. {
  92. return $this->id;
  93. }
  94.  
  95. /**
  96. * Set created
  97. *
  98. * @param \DateTime $created
  99. *
  100. * @return Activity
  101. */
  102. public function setCreated($created)
  103. {
  104. $this->created = $created;
  105.  
  106. return $this;
  107. }
  108.  
  109. /**
  110. * Get created
  111. *
  112. * @return \DateTime
  113. */
  114. public function getCreated()
  115. {
  116. return $this->created;
  117. }
  118.  
  119. /**
  120. * Set modified
  121. *
  122. * @param \DateTime $modified
  123. *
  124. * @return Activity
  125. */
  126. public function setModified($modified)
  127. {
  128. $this->modified = $modified;
  129.  
  130. return $this;
  131. }
  132.  
  133. /**
  134. * Get modified
  135. *
  136. * @return \DateTime
  137. */
  138. public function getModified()
  139. {
  140. return $this->modified;
  141. }
  142.  
  143. /**
  144. * Set description
  145. *
  146. * @param string $description
  147. *
  148. * @return Activity
  149. */
  150. public function setDescription($description)
  151. {
  152. $this->description = $description;
  153.  
  154. return $this;
  155. }
  156.  
  157. /**
  158. * Get description
  159. *
  160. * @return string
  161. */
  162. public function getDescription()
  163. {
  164. return $this->description;
  165. }
  166.  
  167. /**
  168. * Set activityChannel
  169. *
  170. * @param \AppBundle\Entity\ActivityChannel $activityChannel
  171. *
  172. * @return Activity
  173. */
  174. public function setActivityChannel(\AppBundle\Entity\ActivityChannel $activityChannel = null)
  175. {
  176. $this->activityChannel = $activityChannel;
  177.  
  178. return $this;
  179. }
  180.  
  181. /**
  182. * Get activityChannel
  183. *
  184. * @return \AppBundle\Entity\ActivityChannel
  185. */
  186. public function getActivityChannel()
  187. {
  188. return $this->activityChannel;
  189. }
  190.  
  191. /**
  192. * Set activityType
  193. *
  194. * @param \AppBundle\Entity\ActivityType $activityType
  195. *
  196. * @return Activity
  197. */
  198. public function setActivityType(\AppBundle\Entity\ActivityType $activityType = null)
  199. {
  200. $this->activityType = $activityType;
  201.  
  202. return $this;
  203. }
  204.  
  205. /**
  206. * Get activityType
  207. *
  208. * @return \AppBundle\Entity\ActivityType
  209. */
  210. public function getActivityType()
  211. {
  212. return $this->activityType;
  213. }
  214.  
  215. /**
  216. * Set masterContact
  217. *
  218. * @param \AppBundle\Entity\MasterContact $masterContact
  219. *
  220. * @return Activity
  221. */
  222. public function setMasterContact(\AppBundle\Entity\MasterContact $masterContact = null)
  223. {
  224. $this->masterContact = $masterContact;
  225.  
  226. return $this;
  227. }
  228.  
  229. /**
  230. * Get masterContact
  231. *
  232. * @return \AppBundle\Entity\MasterContact
  233. */
  234. public function getMasterContact()
  235. {
  236. return $this->masterContact;
  237. }
  238.  
  239. /**
  240. * Set user
  241. *
  242. * @param \AppBundle\Entity\User $user
  243. *
  244. * @return Activity
  245. */
  246. public function setUser(\AppBundle\Entity\User $user = null)
  247. {
  248. $this->user = $user;
  249.  
  250. return $this;
  251. }
  252.  
  253. /**
  254. * Get user
  255. *
  256. * @return \AppBundle\Entity\User
  257. */
  258. public function getUser()
  259. {
  260. return $this->user;
  261. }
  262. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement