Symfony 序列化程序工作的实体类的预期元数据是什么?
我正在尝试配置JMS/序列化程序以排除实体的属性 然而,我被以下例外情况所困扰:Symfony 序列化程序工作的实体类的预期元数据是什么?,symfony,jmsserializerbundle,Symfony,Jmsserializerbundle,我正在尝试配置JMS/序列化程序以排除实体的属性 然而,我被以下例外情况所困扰: Expected metadata for class My\FooBundle\Entity\Asset to be defined in ~/src/test/src/My/FooBundle/Resources/config/serializer/Entity.Asset.yml. 我需要在那里定义的预期元数据是什么 我的实体.serializer.yml仅由 Asset: exclusion_po
Expected metadata for class My\FooBundle\Entity\Asset to be defined in ~/src/test/src/My/FooBundle/Resources/config/serializer/Entity.Asset.yml.
我需要在那里定义的预期元数据是什么
我的实体.serializer.yml
仅由
Asset:
exclusion_policy: ALL
:yaml文件中实体的键必须是完全限定的类名,因此:
My\FooBundle\Entity\Asset:
exclusion_policy: ALL
一切正常