Пример #1
0
 public function addMusic(Music $newMusic)
 {
     $newMusic->registerOwner($this);
     $this->musics[] = $newMusic;
 }
Пример #2
0
 public function addMusic(Music $music)
 {
     if (!in_array($music->getId(), $this->music_ids_list)) {
         $this->music_ids_list[] = $music->getId();
     }
 }