/**
  * 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');
     }
 }