#102299Incomprehensible behavior: Entity in a forward argument
Description
Hello,
I’m not quite sure if this is a bug or if I fundamentally misunderstood something.
In my self programmed controller I have several actions. Many small Actions do their job and forward a few arguments to a larger Action method, which then organizes everything else and whose template is rendered.
But now when I put an entity into the forward arguments, it only goes well once.
Ex: user clicks on a submit button. Then he lands in my small action method. This validates and forwards among other things also a manipulated entity. This is fast, the errors are displayed. Everything is top. But if the user clicks the button again, it takes many seconds until the page is loaded again.
Currently I convert the entity into an array by hand to put it into the arguments, so that the “big” method “copies” the array back into an entity. This works reliably and quickly.
But surely this can’t be intentional? Is there a caching mechanism or some other generic algorithm interfering?
Can anyone else confirm this behavior? Or show me where in the manual it says not to put Entity in the forward arguments?
I thought the advantage of forwards was just that you can transport more complex objects from action to action without going through the browser….
Thanks for your help… Clemens
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Incomprehensible behavior: Entity in a forward argument Resolves: #102299 Releases: main