/** * Remove playlists * * @param \Network\StoreBundle\Entity\Playlist $playlists */ public function removePlaylist(\Network\StoreBundle\Entity\Playlist $playlist) { $playlist->setUser(null); $this->playlists->removeElement($playlist); }