public saveChanges() as Int:
Synchronizes pending unit-of-work changes with the provider.
SQL mutations require an active transaction. Inserts, changed-property updates and deletes are prepared statements, and generated identities are assigned before this method returns.
Number of distinct entities synchronized.
changed = manager.saveChanges()