Closed milesmatthias closed 10 years ago
I'd frequently do something like:
model.create(); model.save(); allRecords = model.all();
and allRecords.length would be 0. This was really confusing until I looked at the source and saw I needed to fetch all of the records first.
allRecords.length
I'll try to make this more clear soon. Thanks for the input.
added a bit. nothing extensive, but should give people enough of a hint
:+1:
I'd frequently do something like:
model.create(); model.save(); allRecords = model.all();
and
allRecords.length
would be 0. This was really confusing until I looked at the source and saw I needed to fetch all of the records first.