Data/Bean

Data/Bean

# new Data/Bean()

Base bean class. Beans extend Backbone.Model.

Use Data.DataManager to create instances of beans.

CRUD

Use standard Backbone's fetch, save, and destroy methods to perform CRUD operations on beans. See the Data.DataManager class for details.

Validation

This class does not override Backbone.Model.validate. The validation is done in the save method. If the bean is invalid the save is rejected. Use Data/Bean#isValidAsync to check if the bean is valid in other situations. Failed validations trigger an app:error:validation:<field-name> event.