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