/**
  * Filter the query by a related DetailBarangMasuk object
  *
  * @param   DetailBarangMasuk|PropelObjectCollection $detailBarangMasuk  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 BarangMasukQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByDetailBarangMasuk($detailBarangMasuk, $comparison = null)
 {
     if ($detailBarangMasuk instanceof DetailBarangMasuk) {
         return $this->addUsingAlias(BarangMasukPeer::ID, $detailBarangMasuk->getIdBarangMasuk(), $comparison);
     } elseif ($detailBarangMasuk instanceof PropelObjectCollection) {
         return $this->useDetailBarangMasukQuery()->filterByPrimaryKeys($detailBarangMasuk->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByDetailBarangMasuk() only accepts arguments of type DetailBarangMasuk or PropelCollection');
     }
 }