Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace dn\AnkieterBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * dn\AnkieterBundle\Entity\Answer
- *
- * @ORM\Table()
- * @ORM\Entity
- */
- class Answer
- {
- /**
- * @var integer $id
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var integer $position
- *
- * @ORM\Column(name="position", type="integer")
- */
- private $position;
- /**
- * @var string $content
- *
- * @ORM\Column(name="content", type="string", length=255)
- */
- private $content;
- /**
- * @ORM\ManyToOne(targetEntity="Question", inversedBy="answers")
- * @ORM\JoinColumn(name="question_id", referencedColumnName="id")
- */
- protected $question;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set position
- *
- * @param integer $position
- */
- public function setPosition($position)
- {
- $this->position = $position;
- }
- /**
- * Get position
- *
- * @return integer
- */
- public function getPosition()
- {
- return $this->position;
- }
- /**
- * Set content
- *
- * @param string $content
- */
- public function setContent($content)
- {
- $this->content = $content;
- }
- /**
- * Get content
- *
- * @return string
- */
- public function getContent()
- {
- return $this->content;
- }
- /**
- * Set question
- *
- * @param dn\AnkieterBundle\Entity\Question $question
- */
- public function setQuestion(\dn\AnkieterBundle\Entity\Question $question)
- {
- $this->question = $question;
- }
- /**
- * Get question
- *
- * @return dn\AnkieterBundle\Entity\Question
- */
- public function getQuestion()
- {
- return $this->question;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement