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;
- use Doctrine\Common\Collections\ArrayCollection;
- /**
- * dn\AnkieterBundle\Entity\Inquiry
- *
- * @ORM\Table()
- * @ORM\Entity(repositoryClass="dn\AnkieterBundle\Entity\InquiryRepository")
- */
- class Inquiry
- {
- /**
- * @var integer $id
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string $name
- *
- * @ORM\Column(name="name", type="string", length=255)
- */
- private $name;
- /**
- * @var string $description
- *
- * @ORM\Column(name="description", type="string", length=255)
- */
- private $description;
- /**
- * @ORM\OneToMany(targetEntity="Question", mappedBy="inquiry")
- */
- protected $questions;
- public function __construct()
- {
- $this->questions = new ArrayCollection();
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set name
- *
- * @param string $name
- */
- public function setName($name)
- {
- $this->name = $name;
- }
- /**
- * Get name
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Set description
- *
- * @param string $description
- */
- public function setDescription($description)
- {
- $this->description = $description;
- }
- /**
- * Get description
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Add questions
- *
- * @param dn\AnkieterBundle\Entity\Question $questions
- */
- public function addQuestion(\dn\AnkieterBundle\Entity\Question $questions)
- {
- $this->questions[] = $questions;
- }
- /**
- * Get questions
- *
- * @return Doctrine\Common\Collections\Collection
- */
- public function getQuestions()
- {
- return $this->questions;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement