/** * 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; }
/** * 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; }