123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?php
- use Doctrine\ORM\Mapping as ORM;
- /**
- * EntityCBlogPost
- *
- * @Table(name="c_blog_post")
- * @Entity
- */
- class EntityCBlogPost
- {
- /**
- * @var integer
- *
- * @Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- * @Id
- * @GeneratedValue(strategy="NONE")
- */
- private $cId;
- /**
- * @var integer
- *
- * @Column(name="post_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- * @Id
- * @GeneratedValue(strategy="NONE")
- */
- private $postId;
- /**
- * @var string
- *
- * @Column(name="title", type="string", length=250, precision=0, scale=0, nullable=false, unique=false)
- */
- private $title;
- /**
- * @var string
- *
- * @Column(name="full_text", type="text", precision=0, scale=0, nullable=false, unique=false)
- */
- private $fullText;
- /**
- * @var \DateTime
- *
- * @Column(name="date_creation", type="datetime", precision=0, scale=0, nullable=false, unique=false)
- */
- private $dateCreation;
- /**
- * @var integer
- *
- * @Column(name="blog_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $blogId;
- /**
- * @var integer
- *
- * @Column(name="author_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $authorId;
- /**
- * Set cId
- *
- * @param integer $cId
- * @return EntityCBlogPost
- */
- public function setCId($cId)
- {
- $this->cId = $cId;
- return $this;
- }
- /**
- * Get cId
- *
- * @return integer
- */
- public function getCId()
- {
- return $this->cId;
- }
- /**
- * Set postId
- *
- * @param integer $postId
- * @return EntityCBlogPost
- */
- public function setPostId($postId)
- {
- $this->postId = $postId;
- return $this;
- }
- /**
- * Get postId
- *
- * @return integer
- */
- public function getPostId()
- {
- return $this->postId;
- }
- /**
- * Set title
- *
- * @param string $title
- * @return EntityCBlogPost
- */
- public function setTitle($title)
- {
- $this->title = $title;
- return $this;
- }
- /**
- * Get title
- *
- * @return string
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * Set fullText
- *
- * @param string $fullText
- * @return EntityCBlogPost
- */
- public function setFullText($fullText)
- {
- $this->fullText = $fullText;
- return $this;
- }
- /**
- * Get fullText
- *
- * @return string
- */
- public function getFullText()
- {
- return $this->fullText;
- }
- /**
- * Set dateCreation
- *
- * @param \DateTime $dateCreation
- * @return EntityCBlogPost
- */
- public function setDateCreation($dateCreation)
- {
- $this->dateCreation = $dateCreation;
- return $this;
- }
- /**
- * Get dateCreation
- *
- * @return \DateTime
- */
- public function getDateCreation()
- {
- return $this->dateCreation;
- }
- /**
- * Set blogId
- *
- * @param integer $blogId
- * @return EntityCBlogPost
- */
- public function setBlogId($blogId)
- {
- $this->blogId = $blogId;
- return $this;
- }
- /**
- * Get blogId
- *
- * @return integer
- */
- public function getBlogId()
- {
- return $this->blogId;
- }
- /**
- * Set authorId
- *
- * @param integer $authorId
- * @return EntityCBlogPost
- */
- public function setAuthorId($authorId)
- {
- $this->authorId = $authorId;
- return $this;
- }
- /**
- * Get authorId
- *
- * @return integer
- */
- public function getAuthorId()
- {
- return $this->authorId;
- }
- }
|