EntityCBlogPost.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityCBlogPost
  5. *
  6. * @Table(name="c_blog_post")
  7. * @Entity
  8. */
  9. class EntityCBlogPost
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  15. * @Id
  16. * @GeneratedValue(strategy="NONE")
  17. */
  18. private $cId;
  19. /**
  20. * @var integer
  21. *
  22. * @Column(name="post_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. * @Id
  24. * @GeneratedValue(strategy="NONE")
  25. */
  26. private $postId;
  27. /**
  28. * @var string
  29. *
  30. * @Column(name="title", type="string", length=250, precision=0, scale=0, nullable=false, unique=false)
  31. */
  32. private $title;
  33. /**
  34. * @var string
  35. *
  36. * @Column(name="full_text", type="text", precision=0, scale=0, nullable=false, unique=false)
  37. */
  38. private $fullText;
  39. /**
  40. * @var \DateTime
  41. *
  42. * @Column(name="date_creation", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  43. */
  44. private $dateCreation;
  45. /**
  46. * @var integer
  47. *
  48. * @Column(name="blog_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  49. */
  50. private $blogId;
  51. /**
  52. * @var integer
  53. *
  54. * @Column(name="author_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  55. */
  56. private $authorId;
  57. /**
  58. * Set cId
  59. *
  60. * @param integer $cId
  61. * @return EntityCBlogPost
  62. */
  63. public function setCId($cId)
  64. {
  65. $this->cId = $cId;
  66. return $this;
  67. }
  68. /**
  69. * Get cId
  70. *
  71. * @return integer
  72. */
  73. public function getCId()
  74. {
  75. return $this->cId;
  76. }
  77. /**
  78. * Set postId
  79. *
  80. * @param integer $postId
  81. * @return EntityCBlogPost
  82. */
  83. public function setPostId($postId)
  84. {
  85. $this->postId = $postId;
  86. return $this;
  87. }
  88. /**
  89. * Get postId
  90. *
  91. * @return integer
  92. */
  93. public function getPostId()
  94. {
  95. return $this->postId;
  96. }
  97. /**
  98. * Set title
  99. *
  100. * @param string $title
  101. * @return EntityCBlogPost
  102. */
  103. public function setTitle($title)
  104. {
  105. $this->title = $title;
  106. return $this;
  107. }
  108. /**
  109. * Get title
  110. *
  111. * @return string
  112. */
  113. public function getTitle()
  114. {
  115. return $this->title;
  116. }
  117. /**
  118. * Set fullText
  119. *
  120. * @param string $fullText
  121. * @return EntityCBlogPost
  122. */
  123. public function setFullText($fullText)
  124. {
  125. $this->fullText = $fullText;
  126. return $this;
  127. }
  128. /**
  129. * Get fullText
  130. *
  131. * @return string
  132. */
  133. public function getFullText()
  134. {
  135. return $this->fullText;
  136. }
  137. /**
  138. * Set dateCreation
  139. *
  140. * @param \DateTime $dateCreation
  141. * @return EntityCBlogPost
  142. */
  143. public function setDateCreation($dateCreation)
  144. {
  145. $this->dateCreation = $dateCreation;
  146. return $this;
  147. }
  148. /**
  149. * Get dateCreation
  150. *
  151. * @return \DateTime
  152. */
  153. public function getDateCreation()
  154. {
  155. return $this->dateCreation;
  156. }
  157. /**
  158. * Set blogId
  159. *
  160. * @param integer $blogId
  161. * @return EntityCBlogPost
  162. */
  163. public function setBlogId($blogId)
  164. {
  165. $this->blogId = $blogId;
  166. return $this;
  167. }
  168. /**
  169. * Get blogId
  170. *
  171. * @return integer
  172. */
  173. public function getBlogId()
  174. {
  175. return $this->blogId;
  176. }
  177. /**
  178. * Set authorId
  179. *
  180. * @param integer $authorId
  181. * @return EntityCBlogPost
  182. */
  183. public function setAuthorId($authorId)
  184. {
  185. $this->authorId = $authorId;
  186. return $this;
  187. }
  188. /**
  189. * Get authorId
  190. *
  191. * @return integer
  192. */
  193. public function getAuthorId()
  194. {
  195. return $this->authorId;
  196. }
  197. }