/** * Filter the query by a related Libro_colaborador object * * @param Libro_colaborador $libro_colaborador the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return UsuarioQuery The current query, for fluid interface */ public function filterByLibro_colaborador($libro_colaborador, $comparison = null) { if ($libro_colaborador instanceof Libro_colaborador) { return $this->addUsingAlias(UsuarioPeer::ID, $libro_colaborador->getIdusuario(), $comparison); } elseif ($libro_colaborador instanceof PropelCollection) { return $this->useLibro_colaboradorQuery()->filterByPrimaryKeys($libro_colaborador->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByLibro_colaborador() only accepts arguments of type Libro_colaborador or PropelCollection'); } }