getAssetCollections() public method

Return the asset collections this asset is included in
public getAssetCollections ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection
 /**
  * Edit an asset
  *
  * @param Asset $asset
  * @return void
  */
 public function editAction(Asset $asset)
 {
     $this->view->assignMultiple(array('tags' => $asset->getAssetCollections()->count() > 0 ? $this->tagRepository->findByAssetCollections($asset->getAssetCollections()->toArray()) : $this->tagRepository->findAll(), 'asset' => $asset, 'assetCollections' => $this->assetCollectionRepository->findAll()));
 }