/**
  * Filter the query by a related \SpoilerWiki\ContentArea object
  *
  * @param \SpoilerWiki\ContentArea|ObjectCollection $contentArea the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildSummaryQuery The current query, for fluid interface
  */
 public function filterByContentArea($contentArea, $comparison = null)
 {
     if ($contentArea instanceof \SpoilerWiki\ContentArea) {
         return $this->addUsingAlias(SummaryTableMap::COL_ID, $contentArea->getId(), $comparison);
     } elseif ($contentArea instanceof ObjectCollection) {
         return $this->useContentAreaQuery()->filterByPrimaryKeys($contentArea->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByContentArea() only accepts arguments of type \\SpoilerWiki\\ContentArea or Collection');
     }
 }
 /**
  * Declares an association between this object and a ChildContentArea object.
  *
  * @param  ChildContentArea $v
  * @return $this|\SpoilerWiki\ContentAreaVersion The current object (for fluent API support)
  * @throws PropelException
  */
 public function setContentArea(ChildContentArea $v = null)
 {
     if ($v === null) {
         $this->setId(NULL);
     } else {
         $this->setId($v->getId());
     }
     $this->aContentArea = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildContentArea object, it will not be re-added.
     if ($v !== null) {
         $v->addContentAreaVersion($this);
     }
     return $this;
 }
 /**
  * Exclude object from result
  *
  * @param   ChildContentArea $contentArea Object to remove from the list of results
  *
  * @return $this|ChildContentAreaQuery The current query, for fluid interface
  */
 public function prune($contentArea = null)
 {
     if ($contentArea) {
         $this->addUsingAlias(ContentAreaTableMap::COL_ID, $contentArea->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Filter the query by a related \SpoilerWiki\ContentArea object
  *
  * @param \SpoilerWiki\ContentArea|ObjectCollection $contentArea 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 ChildContentAreaVersionQuery The current query, for fluid interface
  */
 public function filterByContentArea($contentArea, $comparison = null)
 {
     if ($contentArea instanceof \SpoilerWiki\ContentArea) {
         return $this->addUsingAlias(ContentAreaVersionTableMap::COL_ID, $contentArea->getId(), $comparison);
     } elseif ($contentArea instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ContentAreaVersionTableMap::COL_ID, $contentArea->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByContentArea() only accepts arguments of type \\SpoilerWiki\\ContentArea or Collection');
     }
 }