How can we improve Breeze.js?

Documentation mentions "EntityManager.acceptChanges" and "rejectChanges" method, but those methods don't exist

This page:
http://www.breezejs.com/documentation/entitymanager-and-caching

Says that EntityManager has the methods acceptChanges and rejectChanges, but they don't appear to exist in code.

They sure sound useful though. ;)

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Ward Bell commented  ·   ·  Flag as inappropriate

        “EntityManager.rejectChanges” does exist; see http://www.breezejs.com/sites/all/apidocs/files/a50_entityManager.js.html#l1311

        But you are right about “EntityManager.acceptChanges” … that exists in DevForce but not in Breeze. I’m not sure why it is missing in Breeze.

        There is an EntityAspect.acceptChanges so an EntityManager version is easy to implement, even monkey patch in:

        EntityManager.prototype.acceptChanges = function() {
        this.getChanges().forEach(function(entity) { entity.entityAspect.acceptChanges();})
        }

        We'll look into it. We'll certainly correct the docs.

      Feedback and Knowledge Base