/**
  * Filter the query by a related \SpoilerWiki\Snippet object
  *
  * @param \SpoilerWiki\Snippet|ObjectCollection $snippet The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildContentAreaQuery The current query, for fluid interface
  */
 public function filterBySnippet($snippet, $comparison = null)
 {
     if ($snippet instanceof \SpoilerWiki\Snippet) {
         return $this->addUsingAlias(ContentAreaTableMap::COL_ID, $snippet->getId(), $comparison);
     } elseif ($snippet instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ContentAreaTableMap::COL_ID, $snippet->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterBySnippet() only accepts arguments of type \\SpoilerWiki\\Snippet or Collection');
     }
 }