/**
  * Filter the query by a related Privilegios object
  *
  * @param     Privilegios|PropelCollection $privilegios The related object(s) 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
  */
 public function filterByPrivilegios($privilegios, $comparison = null)
 {
     if ($privilegios instanceof Privilegios) {
         return $this->addUsingAlias(EmpleadoPeer::IDPRIVILEGIO, $privilegios->getIdprivilegios(), $comparison);
     } elseif ($privilegios instanceof PropelCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(EmpleadoPeer::IDPRIVILEGIO, $privilegios->toKeyValue('PrimaryKey', 'Idprivilegios'), $comparison);
     } else {
         throw new PropelException('filterByPrivilegios() only accepts arguments of type Privilegios or PropelCollection');
     }
 }
 /**
  * Declares an association between this object and a Privilegios object.
  *
  * @param      Privilegios $v
  * @return     Empleado The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setPrivilegios(Privilegios $v = null)
 {
     if ($v === null) {
         $this->setIdprivilegio(NULL);
     } else {
         $this->setIdprivilegio($v->getIdprivilegios());
     }
     $this->aPrivilegios = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Privilegios object, it will not be re-added.
     if ($v !== null) {
         $v->addEmpleado($this);
     }
     return $this;
 }
 /**
  * Exclude object from result
  *
  * @param     Privilegios $privilegios Object to remove from the list of results
  *
  * @return    PrivilegiosQuery The current query, for fluid interface
  */
 public function prune($privilegios = null)
 {
     if ($privilegios) {
         $this->addUsingAlias(PrivilegiosPeer::IDPRIVILEGIOS, $privilegios->getIdprivilegios(), Criteria::NOT_EQUAL);
     }
     return $this;
 }