1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- namespace SoftDeleteable\Fixture\Entity;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity
- * @Gedmo\SoftDeleteable(fieldName="deletedAt")
- */
- class Comment
- {
- /**
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="IDENTITY")
- */
- private $id;
- /**
- * @ORM\Column(name="comment", type="string")
- */
- private $comment;
- /**
- * @ORM\Column(name="deletedAt", type="datetime", nullable=true)
- */
- private $deletedAt;
- /**
- * @ORM\ManyToOne(targetEntity="Article", inversedBy="comments")
- */
- private $article;
- public function getId()
- {
- return $this->id;
- }
- public function setComment($comment)
- {
- $this->comment = $comment;
- }
- public function getComment()
- {
- return $this->comment;
- }
- public function setDeletedAt($deletedAt)
- {
- $this->deletedAt = $deletedAt;
- }
- public function getDeletedAt()
- {
- return $this->deletedAt;
- }
- public function getArticle()
- {
- return $this->article;
- }
- }
|