Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am getting the error Fatal error: Call to undefined method EntityListWrapper::delete()
with this code:
// Delete the Actuals.
if ($tracker->field_related_actuals->value()) {
$tracker->field_related_actuals->delete();
drupal_set_message(t('Actual costs record deleted.'));
}
Why is this invalid?
Comments