We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Author and fellow developers.
Working through Chapter 6, Recipe 4 (Updating an entities field values, pg144-145) there is a bad code example.
On Page 144, step 4, the example shows updating the field_body value using the code $node->set('field_body', $json['body']);
field_body
$node->set('field_body', $json['body']);
This will throw a Field field_body is unknown.
Field field_body is unknown.
In following step, on page 145 step 5, the code example is changed with no context as to why or that the code needs to be changed.
By using $node->set('body', $json['body']); the code will work.
$node->set('body', $json['body']);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi Author and fellow developers.
Working through Chapter 6, Recipe 4 (Updating an entities field values, pg144-145) there is a bad code example.
On Page 144, step 4, the example shows updating the
field_body
value using the code$node->set('field_body', $json['body']);
This will throw a
Field field_body is unknown.
In following step, on page 145 step 5, the code example is changed with no context as to why or that the code needs to be changed.
By using
$node->set('body', $json['body']);
the code will work.The text was updated successfully, but these errors were encountered: