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