Esempio n. 1
0
 /**
  * Remove an asset from the category
  *
  * @param Asset $asset
  * @return $this
  */
 public function removeAsset(Asset $asset)
 {
     ListManager::remove($this, 'assets', $asset, ['getId']);
     return $this;
 }
Esempio n. 2
0
 /**
  * Remove an article from the category
  *
  * @param Article $article
  * @return $this
  */
 public function removeArticle(Article $article)
 {
     ListManager::remove($this, 'articles', $article, ['getId']);
     return $this;
 }