safrazik / breeze.server.php

Breeze JS support for PHP applications
MIT License
29 stars 11 forks source link

Serialization of entities after SaveChanges includes associations #10

Closed safrazik closed 9 years ago

safrazik commented 9 years ago

In the serialized json response after SaveChanges, only the entities that were sent to the server, should be returned with the updated values. At the moment, the serialized entities also include the associations.

It becomes problematic when one to many associations are available. A big payload can break things. Could be a side effect of this feature #6 Add support for automatic handling of bidirectional associations

Hint: Introduce serialization contexts for SaveChanges, Metadata and Query Results