/**
  * Filter the query by a related Ordencompradetalle object
  *
  * @param   Ordencompradetalle|PropelObjectCollection $ordencompradetalle The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 LugarinventarioQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByOrdencompradetalle($ordencompradetalle, $comparison = null)
 {
     if ($ordencompradetalle instanceof Ordencompradetalle) {
         return $this->addUsingAlias(LugarinventarioPeer::IDORDENCOMPRADETALLE, $ordencompradetalle->getIdordencompradetalle(), $comparison);
     } elseif ($ordencompradetalle instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(LugarinventarioPeer::IDORDENCOMPRADETALLE, $ordencompradetalle->toKeyValue('PrimaryKey', 'Idordencompradetalle'), $comparison);
     } else {
         throw new PropelException('filterByOrdencompradetalle() only accepts arguments of type Ordencompradetalle or PropelCollection');
     }
 }