/**
  * Filter the query by a related Amistad object
  *
  * @param     Amistad $amistad  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 filterByAmistadRelatedByid_usuarioamigo($amistad, $comparison = null)
 {
     if ($amistad instanceof Amistad) {
         return $this->addUsingAlias(UsuarioPeer::ID, $amistad->getid_usuarioamigo(), $comparison);
     } elseif ($amistad instanceof PropelCollection) {
         return $this->useAmistadRelatedByid_usuarioamigoQuery()->filterByPrimaryKeys($amistad->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByAmistadRelatedByid_usuarioamigo() only accepts arguments of type Amistad or PropelCollection');
     }
 }