예제 #1
0
 /**
  * Add playlistItems
  *
  * @param \Network\StoreBundle\Entity\PlaylistItem $playlistItems
  * @return AudioTrack
  */
 public function addPlaylistItem(\Network\StoreBundle\Entity\PlaylistItem $playlistItem)
 {
     $playlistItem->setAudioTrack($this);
     $this->playlistItems[] = $playlistItem;
     return $this;
 }
예제 #2
0
 /**
  * Add items
  *
  * @param \Network\StoreBundle\Entity\PlaylistItem $items
  * @return Playlist
  */
 public function addItem(\Network\StoreBundle\Entity\PlaylistItem $item)
 {
     $item->setPlaylist($this);
     $this->items[] = $item;
     return $this;
 }