-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Hello,
I'm not sure it's a bug, I aked in discord but I have no answer, but maybe it's not a bug but something improvable.
Original post is :
About last version of meili with symfony bundle.
It seems that the normalization process (custom normalizer) still occurs event if "is_searchable" return false.
So, I wonder what I need to do in the normalizer.For example, my "is_searchable" function handle non validated (not full for example) entities, so they can't really be serialized.
But as the normalizer are still called, I have to duplicate the logic, and return something (empty array ?).So first question is, am I wrong about that first assumption (maybe problem is my code) ?
Then, questions are, what is the behaviour of normalization process ? I mean, what happens if I return an empty array, or null, or false ?
Is "is_searchable" still usefull if I handle the logic in the normalizer ?Thanks !