drupal 字段集合如何存储在数据库中?

How are drupal field collections stored in the database?

我正在尝试将一个用 drupal 制作的站点与一个 golang 应用程序集成。我只需要从 drupal 站点获取数据。我有数据库访问权限,正在尝试从 drupal 站点的数据库中获取数据。但是我不明白 drupal 如何在数据库中存储字段集合。如何从 drupal 数据库中找到节点的字段集合?

When a field collection is added to a user, node, or other Drupal entity it is represented with a field type of field_collection_item. The value stored in the field_collection_item field is the id of the field collection, not the individual values of the fields making up the field_collection_item.

参考: https://www.drupal.org/node/1477202

基本上它将字段集合保存在 field_collection_item table 中,并将字段集合中的所有其他字段保存在与普通字段相同的约定中(它们自己的 table),除了在各个字段中有一个 bundle 列与 field_collection_item 的 field_name 相关。建立一对多关系