I am creating a node (in Drupal 8) with the following code.
use DrupalnodeEntityNode; $node = Node::create([ 'type' => 'calendar_data', 'title' => 'testing finaly 1111111111111111111111111 ', 'field_current_month' => date('Y-m-d'), 'field_date_type_value' => '1', ]); $node->save();
The value of field_date_type_value is set to 0, not the expected value (1) I am using in the code.