}
}
- // Create an instance of a DatabaseResult class with the given result
+ // Create an instance of a CachedDatabaseResult class with the given result
+ // @TODO Minor: Update above comment to e.g. BaseDatabaseResult
$resultInstance = ObjectFactory::createObjectByConfiguredName('database_result_class', array($result));
// And return the instance
* @param $onlyKeys Only use these keys for a cache key
* @return $numRows Numbers of rows of database entries
*/
- public function doSelectCountByCriteria (Criteria $criteriaInstance, $onlyKeys = array()) {
+ public function doSelectCountByCriteria (Criteria $criteriaInstance, $onlyKeys = array()) {
// Total numbers is -1 so we can distinglish between failed and valid queries
$numRows = 0;