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