Guest User

Untitled

a guest
Jul 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Application\HelloBundle\Entity;
  4.  
  5. /**
  6. * @orm:Entity
  7. */
  8. class Music
  9. {
  10. /**
  11. * @orm:Id
  12. * @orm:Column(type="integer")
  13. * @orm:generatedValue(strategy="AUTO")
  14. */
  15. protected $id;
  16.  
  17. /**
  18. * @orm:ManyToOne(targetEntity="Music", inversedBy="musics")
  19. */
  20.  
  21. protected $channel;
  22.  
  23. /**
  24. * @orm:Column(type="string")
  25. */
  26. protected $title;
  27.  
  28. /**
  29. * Get id
  30. *
  31. * @return integer $id
  32. */
  33. public function getId()
  34. {
  35. return $this->id;
  36. }
  37.  
  38. /**
  39. * Set title
  40. *
  41. * @param string $title
  42. */
  43. public function setTitle($title)
  44. {
  45. $this->title = $title;
  46. }
  47.  
  48. /**
  49. * Get title
  50. *
  51. * @return string $title
  52. */
  53. public function getTitle()
  54. {
  55. return $this->title;
  56. }
  57.  
  58. /**
  59. * Set channel
  60. *
  61. * @param Application\HelloBundle\Entity\Channel $channel
  62. */
  63. public function setChannel(\Application\HelloBundle\Entity\Channel $channel)
  64. {
  65. $this->channel = $channel;
  66. }
  67.  
  68. /**
  69. * Get channel
  70. *
  71. * @return Application\HelloBundle\Entity\Channel $channel
  72. */
  73. public function getChannel()
  74. {
  75. return $this->channel;
  76. }
  77. }
Add Comment
Please, Sign In to add comment