/** * Exclude object from result * * @param Post $post Object to remove from the list of results * * @return PostQuery The current query, for fluid interface */ public function prune($post = null) { if ($post) { $this->addUsingAlias(PostPeer::ID, $post->getId(), Criteria::NOT_EQUAL); } return $this; }