Skip to content

Serialization error in entity with UserInterface #53

Closed Answered by priyadi
szal1k asked this question in Q&A
Discussion options

You must be logged in to vote

To me, that's still absolutely necessary even without rekalogika/file. Without __serialize & __unserialize, Symfony will serialize the complete User entity, along with its entire related entities, to the session, even though the authentication layer only needs the id, and it will refresh the entity from the database anyway.

This is not specific to rekalogika/file, but applies to all cases where something prevents User from being serialized, including other file upload frameworks. But probably a good idea to add to our docs. Thanks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by szal1k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants