$criteriaInstance->setLimit(1);
// Get a wrapper instance
- $wrapperInstance = ObjectFactory::createObjectByConfiguredName('payment_db_wrapper_class');
+ $wrapperInstance = DatabaseWrapperFactory::createWrapperByConfiguredName('payment_db_wrapper_class');
// Get result back
$resultInstance = $wrapperInstance->doSelectByCriteria($criteriaInstance);