Solar_Sql_Model_Related_HasOne::_collate()
protected
array
Solar_Sql_Model_Related_HasOne::_collate
( array $array
, string $key
)
Collates a result array by an array key, grouping the results by that value.
Inherited from Solar_Sql_Model_Related_ToOne.
Parameters
(array)
$array
: The result array.(string)
$key
: The key in the array to collate by.
Returns
(array) An array of collated elements, keyed by the collation value.
Description
Collates a result array by an array key, grouping the results by that value.