Adding base field changed sets changed to NULL on existing entities, but do no update changed on edit

Created on 25 March 2025, 13 days ago

Adding base fields "created" and "changed" to eck entity type result in having "null" those fields for already existing entities.

When editing an entity, changed value wil not be updated and stay set at null.

If I change in code
$entity->set('changed', time());
$entity->save();

The value is saved correctly, and subsequent edits correctly update the changed field.

This suggests there may be a check somewhere that prevents updating the changed field if its initial value is null. I havenโ€™t yet had time to investigate this further.

๐Ÿ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada kiwad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024