Deserialize an entity with a relationship with Symfony Serializer Component

前端 未结 5 1782
挽巷
挽巷 2020-12-16 01:27

I\'m trying to deserialize an entity with a relationship using the symfony serializer component. This is my entity:

namespace AppBundle\\Entity;

use Doctrin         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 01:58

    It works now.You have to enable property_info in config.yml:

      framework:
                property_info:
                        enabled: true
    

提交回复
热议问题