JMSSerializerBundle
JMSSerializerBundle copied to clipboard
Notice: Trying to get property 'name' of non-object in vendor/jms/serializer/src/JMS/Serializer/Metadata/PropertyMetadata.php line 58
This occurs while trying to serialize an object into json.
It looks the object is null but the serializer thinks is not.... can you share something more here?
I think the most likely explanation here is a property annotated @Type("SomeType"), that should have been @Type("array<SomeType>").
I bug hunt this sort of issue by adding @Exclude to properties that I suspect, until I find the error by trial.