/**
  * Declares an association between this object and a ChildEntityType object.
  *
  * @param  ChildEntityType $v
  * @return $this|\ECP\GroupAccess The current object (for fluent API support)
  * @throws PropelException
  */
 public function setEntityType(ChildEntityType $v = null)
 {
     if ($v === null) {
         $this->setEntitytypeid(NULL);
     } else {
         $this->setEntitytypeid($v->getId());
     }
     $this->aEntityType = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildEntityType object, it will not be re-added.
     if ($v !== null) {
         $v->addGroupAccess($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related \ECP\EntityType object
  *
  * @param \ECP\EntityType|ObjectCollection $entityType 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 ChildGroupAccessQuery The current query, for fluid interface
  */
 public function filterByEntityType($entityType, $comparison = null)
 {
     if ($entityType instanceof \ECP\EntityType) {
         return $this->addUsingAlias(GroupAccessTableMap::COL_ENTITYTYPEID, $entityType->getId(), $comparison);
     } elseif ($entityType instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(GroupAccessTableMap::COL_ENTITYTYPEID, $entityType->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByEntityType() only accepts arguments of type \\ECP\\EntityType or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildEntityType $entityType Object to remove from the list of results
  *
  * @return $this|ChildEntityTypeQuery The current query, for fluid interface
  */
 public function prune($entityType = null)
 {
     if ($entityType) {
         $this->addUsingAlias(EntityTypeTableMap::COL_ID, $entityType->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }