You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anytime an API request comes in for an endpoint we clear all of the relationships and then rebuild them from the sent data. Instead we should only change those items which have changed. This may improve some deadlock issue and will also have the benefit of only placing actual changes into the audit log. Currently every request indicates that it has changed relationships.
Turns out the symfony will handle this for us if we add removeer methods to each entity. Then forms will no longer call set they will just call that method.
Anytime an API request comes in for an endpoint we clear all of the relationships and then rebuild them from the sent data. Instead we should only change those items which have changed. This may improve some deadlock issue and will also have the benefit of only placing actual changes into the audit log. Currently every request indicates that it has changed relationships.
This might look like:
Much of this can likely be generalized into a trait to limit code duplication.
The text was updated successfully, but these errors were encountered: