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