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