Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loadRoles (company) {
- var roles = company.get('roles');
- console.log(roles.length); // 1
- console.log(roles[0].isNew()); // false
- promise = Parse.Object.fetchAll(roles)
- .fail(function(error){
- // This gets triggered with error
- // {code: 101, message: 'All objects must exist on the server'}
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement