I'd like to get the ID of a project before saving in database... I know that the ID is generated during the saving but is there a solution?
var photo = dbContext.photo.build(photo);
console.log(photo.id); // doesn't work
photo.save().success(function(photo) {
console.log(photo.id); // works
callback(photo);
});