I have a multiple value datetime field with start and end date. I've tried to update the field value with an start date without ending date but a php error happens. Any ideas to solve this?


  $clock_control_values[$next]['value'] = $current_time;
  $tt_profile->set('field_clock_control', $clock_control_values);

The error:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'field_clock_control_end_value' cannot be null

Thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.