我有一个相对简单的映射,这使我在更新数据时遇到问题。 这是一小串字符串。
types:
sector:
properties:
company:
type: nested
properties:
id:
type: integer
name:
boost: 8
analyzer: autocomplete
search_analyzer: autocomplete_search
content:
boost: 4
type: ~
network:
type: ~
country:
type: ~
这给了我这样的映射。
// ...
"company": {
"id": 103,
"name": "example name",
"content": "foo bar",
"network": [
"foo"
,
"bar"
,
"baz"
],
"country": "FR"
},
// ...
我实体中的对应属性是一个数组,定义如下
//...
/**
* @ORM\Column(name="network", type="simple_array", nullable=true)
*/
private $network;
//...
有时候,当我修改实体时,我会收到此错误消息
Error in one or more bulk request actions:
update: /myIndex/sector/103 caused failed to parse [company.network]
我试图稍微隔离问题,当我从该数组中删除或添加值时,通常会出现错误,当我删除所有值时,一切都很好!
我不知道出了什么问题,您有什么线索找出错误的出处吗?