/**
  * Filter the query by a related \ECP\CompositionEntity object
  *
  * @param \ECP\CompositionEntity|ObjectCollection $compositionEntity the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByCompositionEntity($compositionEntity, $comparison = null)
 {
     if ($compositionEntity instanceof \ECP\CompositionEntity) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $compositionEntity->getUserid(), $comparison);
     } elseif ($compositionEntity instanceof ObjectCollection) {
         return $this->useCompositionEntityQuery()->filterByPrimaryKeys($compositionEntity->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByCompositionEntity() only accepts arguments of type \\ECP\\CompositionEntity or Collection');
     }
 }
Esempio n. 2
0
 /**
  * Filter the query by a related \RRightsForuser object
  *
  * @param \RRightsForuser|ObjectCollection $rRightsForuser the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUsersQuery The current query, for fluid interface
  */
 public function filterByRRightsForuser($rRightsForuser, $comparison = null)
 {
     if ($rRightsForuser instanceof \RRightsForuser) {
         return $this->addUsingAlias(UsersTableMap::COL_ID, $rRightsForuser->getUserid(), $comparison);
     } elseif ($rRightsForuser instanceof ObjectCollection) {
         return $this->useRRightsForuserQuery()->filterByPrimaryKeys($rRightsForuser->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByRRightsForuser() only accepts arguments of type \\RRightsForuser or Collection');
     }
 }