Ejemplo n.º 1
0
 /**
  * Filter the query by a related Cliente object
  *
  * @param   Cliente|PropelObjectCollection $cliente  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 EmpleadoQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByClienteRelatedByIdempleadooperaciones($cliente, $comparison = null)
 {
     if ($cliente instanceof Cliente) {
         return $this->addUsingAlias(EmpleadoPeer::IDEMPLEADO, $cliente->getIdempleadooperaciones(), $comparison);
     } elseif ($cliente instanceof PropelObjectCollection) {
         return $this->useClienteRelatedByIdempleadooperacionesQuery()->filterByPrimaryKeys($cliente->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByClienteRelatedByIdempleadooperaciones() only accepts arguments of type Cliente or PropelCollection');
     }
 }
 /**
  * Filter the query by a related Cliente object
  *
  * @param     Cliente $cliente  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    CiudadQuery The current query, for fluid interface
  */
 public function filterByClienteRelatedByIdCiudad($cliente, $comparison = null)
 {
     if ($cliente instanceof Cliente) {
         return $this->addUsingAlias(CiudadPeer::IDCIUDAD, $cliente->getIdCiudad(), $comparison);
     } elseif ($cliente instanceof PropelCollection) {
         return $this->useClienteRelatedByIdCiudadQuery()->filterByPrimaryKeys($cliente->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByClienteRelatedByIdCiudad() only accepts arguments of type Cliente or PropelCollection');
     }
 }