-
Notifications
You must be signed in to change notification settings - Fork 17
collection
Pierre Besson edited this page Aug 12, 2014
·
3 revisions
- A collection is a group of model.
- It has methods to iterate, sort
- It can be use to save a list of data.
//Dependencies.
var URL = require('../URL');
var Contact = require('./contact');
module.exports = Fmk.Models.PaginatedCollection.extend({
model: Contact,
modelName: "demo.contact",
url: URL.demo.contact
});
Collection have been extended in order to :
- Have pagination
- Sort
- A track of changes
changes:{
creates:[],
deletes:[],
updates: []
}