-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How should the ORM interact with state and withState()
in particular?
#787
Comments
Original upgrade guide content:
|
Fluent 4 5 and 6 are all local, as is my understanding. Only fluent 7 uses global state, since the dataquery params state API (or at least the part fluent uses) seems to have been removed in silverstripe 5. |
See my answer at silverstripe/developer-docs#175 (comment) |
In silverstripe/developer-docs#175 an upgrade guide for Fluent v4 => v5 => v6 was written. It included an assumption that behaviour had changed with how ORM operations interact with state and with
withState()
in particular (I'll include the exact markdown in a comment below).In silverstripe/developer-docs#175 (comment) there was discussion about this - and it looks as though this behaviour is not working in the way we expected it to work.
We should write some unit tests to identify the current behaviour, and then the maintainers should decide what the correct behaviour is, and (if changes are required) when those changes should be made (based on if they're breaking changes, etc).
The answers to those questions may-or-may-not result in changes being needed in the upgrade guide.
TO DO
The text was updated successfully, but these errors were encountered: