feat: edit/delete lists, label updates, workflow fix

This commit is contained in:
2026-04-06 01:40:22 +03:00
parent cac1159588
commit fdf4b006c0
9 changed files with 163 additions and 28 deletions

View File

@@ -62,6 +62,12 @@ class ShoppingListItem extends Entity implements \JsonSerializable {
$this->addType('sortOrder', 'integer');
$this->addType('createdAt', 'integer');
$this->addType('updatedAt', 'integer');
// Force these bool fields to be included in INSERTs. Their PHP defaults
// match the initial value, so the magic setter would otherwise never
// mark them dirty and the column would be omitted from the INSERT.
// fromRow() resets updated fields after hydration, so reads are unaffected.
$this->markFieldUpdated('bought');
$this->markFieldUpdated('repeatFromCompletion');
}
public function jsonSerialize(): array {