在我的项目中,我使用 Doctrine 学说 2.5.4/postgres 9.5。我正在尝试使用 yaml 添加一个 jsonb 字段:
fields:
obj: json_array
Run Code Online (Sandbox Code Playgroud)
这将转换为 json(而不是 jsonb)。关于获取 json 或 jsonb 的规范说明:
如果列定义在 platformOptions 属性数组中包含 jsonb 选项并设置为 true,则选择此选项。
但是 platformOptions 似乎不起作用(试图将它添加到 obj 下面,在顶部......没有成功)。如何添加 jsonb 字段?
谢谢,丹