Solar_Sql_Model::_fetchResultSelect()

protected array Solar_Sql_Model::_fetchResultSelect ( string $type , Solar_Sql_Model_Params_Fetch $fetch )

Returns a data result and the select used to fetch the data.

Parameters

  • (string) $type: The type of fetch to perform: 'all', 'one', etc.

  • (Solar_Sql_Model_Params_Fetch) $fetch: The params for the fetch.

Returns

  • (array) An array of two elements; element 0 is the result data, element 1 is the Solar_Sql_Select object used to fetch the data.

Description

Returns a data result and the select used to fetch the data.

If caching is turned on, this will fetch from the cache (if available) and save the result back to the cache (if needed).



Local