/**
  * Declares an association between this object and a ChildType object.
  *
  * @param  ChildType $v
  * @return $this|\ECP\TypeComparison The current object (for fluent API support)
  * @throws PropelException
  */
 public function setType(ChildType $v = null)
 {
     if ($v === null) {
         $this->setTypeid(NULL);
     } else {
         $this->setTypeid($v->getId());
     }
     $this->aType = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildType object, it will not be re-added.
     if ($v !== null) {
         $v->addTypeComparison($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related \ECP\Type object
  *
  * @param \ECP\Type|ObjectCollection $type 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 ChildTypeComparisonQuery The current query, for fluid interface
  */
 public function filterByType($type, $comparison = null)
 {
     if ($type instanceof \ECP\Type) {
         return $this->addUsingAlias(TypeComparisonTableMap::COL_TYPEID, $type->getId(), $comparison);
     } elseif ($type instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(TypeComparisonTableMap::COL_TYPEID, $type->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByType() only accepts arguments of type \\ECP\\Type or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildType $type Object to remove from the list of results
  *
  * @return $this|ChildTypeQuery The current query, for fluid interface
  */
 public function prune($type = null)
 {
     if ($type) {
         $this->addUsingAlias(TypeTableMap::COL_ID, $type->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }