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