2

我有一个字段集合,其中包含

  1. 复制字段
  2. 用户字段,通过实体引用

现在,当我尝试通过将集合存储在中来访问复制字段时$collection,通过

$collection->field_my_collection_copy->value();

我得到了我正在寻找的东西,但在实体引用字段上尝试类似

$collection->field_my_collection_user->value();

它打破了。通过查看变量,$collection->field_my_collection_user我应该有'uid'可用,但$collection->field_my_collection_user->uid什么也没给我,$collection->field_my_collection_user->uid->value();给我Unable to get the data property uid as the parent data structure is not set

4

1 回答 1

0

这可能是因为字段集合本身并不知道其父节点与什么节点类型相关联。

于 2012-06-20T15:33:44.400 回答