Beispiel #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;
 }
Beispiel #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;
 }