public function filterByDealerBrandVersion($dealerBrandVersion, $comparison = null)
    {
        if ($dealerBrandVersion instanceof \Dealer\Model\DealerBrandVersion) {
            return $this
                ->addUsingAlias(DealerBrandTableMap::ID, $dealerBrandVersion->getId(), $comparison);
        } elseif ($dealerBrandVersion instanceof ObjectCollection) {
            return $this
                ->useDealerBrandVersionQuery()
                ->filterByPrimaryKeys($dealerBrandVersion->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByDealerBrandVersion() only accepts arguments of type \Dealer\Model\DealerBrandVersion or Collection');
        }
    }