emberjs/data — pull request #271 by mmpestorich (2012-06-04 08:22:01+00:00)
Title: Add isLoaded to RecordArray for findMany and findAll

Adds an ```isLoaded``` property and ```load``` method to ```DS.RecordArray```. The developer's implementation of ```adapter.findAll``` and ```adapter.findMany``` can now function similar to existing ```adapter.findQuery``` semantics. Once all the results from a specific ```findAll``` or ```findMany``` query are retrieved, the ```load``` method is called and a ```isLoaded``` flag is set to ```true``` on the corresponding ```DS.RecordArray``` or ```DS.ManyArray```.

For example:
```javascript
findMany: function (store, type, ids, query, manyArray) {
var request = { }; // some request

var success = function(data, textStatus, jqXHR) {
manyArray.load(JSON.parse(data));
};

$.ajax({
'url': 'rest.php',
'type': 'POST',
'data': JSON.stringify(request),
'success': [success]
});
}
```
or:
```javascript
findAll: function (store, type, recordArray) {
var request = { }; // some request

var success = function(data, textStatus, jqXHR) {
recordArray.load(JSON.parse(data));
};

$.ajax({
'url': 'rest.php',
'type': 'POST',
'data': JSON.stringify(request),
'success': [success]
});
}
```