Ejemplo n.º 1
0
 /**
  * Filter the query by a related \JaAclPerfilesRecursos object
  *
  * @param \JaAclPerfilesRecursos|ObjectCollection $jaAclPerfilesRecursos the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildJaAclRecursosQuery The current query, for fluid interface
  */
 public function filterByJaAclPerfilesRecursos($jaAclPerfilesRecursos, $comparison = null)
 {
     if ($jaAclPerfilesRecursos instanceof \JaAclPerfilesRecursos) {
         return $this->addUsingAlias(JaAclRecursosTableMap::COL_ID, $jaAclPerfilesRecursos->getRecursoId(), $comparison);
     } elseif ($jaAclPerfilesRecursos instanceof ObjectCollection) {
         return $this->useJaAclPerfilesRecursosQuery()->filterByPrimaryKeys($jaAclPerfilesRecursos->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByJaAclPerfilesRecursos() only accepts arguments of type \\JaAclPerfilesRecursos or Collection');
     }
 }