/**
  * Declares an association between this object and a Campus object.
  *
  * @param      Campus $v
  * @return     Term The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setCampus(Campus $v = null)
 {
     if ($v === null) {
         $this->setCampusId(NULL);
     } else {
         $this->setCampusId($v->getId());
     }
     $this->aCampus = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Campus object, it will not be re-added.
     if ($v !== null) {
         $v->addTerm($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related Campus object
  *
  * @param     Campus|PropelCollection $campus The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    TermQuery The current query, for fluid interface
  */
 public function filterByCampus($campus, $comparison = null)
 {
     if ($campus instanceof Campus) {
         return $this->addUsingAlias(TermPeer::CAMPUS_ID, $campus->getId(), $comparison);
     } elseif ($campus instanceof PropelCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(TermPeer::CAMPUS_ID, $campus->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByCampus() only accepts arguments of type Campus or PropelCollection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param     Campus $campus Object to remove from the list of results
  *
  * @return    CampusQuery The current query, for fluid interface
  */
 public function prune($campus = null)
 {
     if ($campus) {
         $this->addUsingAlias(CampusPeer::ID, $campus->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }