Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Application\HelloBundle\Entity;
- /**
- * @orm:Entity
- */
- class Music
- {
- /**
- * @orm:Id
- * @orm:Column(type="integer")
- * @orm:generatedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @orm:ManyToOne(targetEntity="Music", inversedBy="musics")
- */
- protected $channel;
- /**
- * @orm:Column(type="string")
- */
- protected $title;
- /**
- * Get id
- *
- * @return integer $id
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set title
- *
- * @param string $title
- */
- public function setTitle($title)
- {
- $this->title = $title;
- }
- /**
- * Get title
- *
- * @return string $title
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * Set channel
- *
- * @param Application\HelloBundle\Entity\Channel $channel
- */
- public function setChannel(\Application\HelloBundle\Entity\Channel $channel)
- {
- $this->channel = $channel;
- }
- /**
- * Get channel
- *
- * @return Application\HelloBundle\Entity\Channel $channel
- */
- public function getChannel()
- {
- return $this->channel;
- }
- }
Add Comment
Please, Sign In to add comment