我有我想有两个Hatoas链接和自定义序列化的实体客户symfony的HATEOAS和JMS系列化
/**
* Customer ORM Entity
*
* @package AppBundle\Entity
*
* @Hateoas\Relation("self", href = @Hateoas\Route("get_customers", parameters = { "customer" = "expr(object.getId())" }))
* @Hateoas\Relation("customers", href = @Hateoas\Route("cget_customers"))))
*/
这是对HATEOAS的注释链接
AppBundle\Entity\Customer:
exclusion_policy: ALL
virtual_properties:
getFullName:
serialized_name: full_name
type: string
这是我的YAML配置为jms序列化,但由于某种原因它也删除了讨厌的链接。
我怎样才能找回来?告诉序列化程序不要删除_links属性?