コード例 #1
0
ファイル: Blog.php プロジェクト: rickymathew/TYPO3.CMS
 /**
  * Remove a post from this blog
  *
  * @param Post $postToRemove The post to be removed
  * @return void
  */
 public function removePost(Post $postToRemove)
 {
     $this->posts->detach($postToRemove);
 }
コード例 #2
0
ファイル: Post.php プロジェクト: plan2net/TYPO3.CMS
 /**
  * Remove all related posts
  *
  * @return void
  */
 public function removeAllRelatedPosts()
 {
     $relatedPosts = clone $this->relatedPosts;
     $this->relatedPosts->removeAll($relatedPosts);
 }