mirror of
https://github.com/chenasraf/nextcloud-pantry.git
synced 2026-05-17 17:28:01 +00:00
feat: edit/delete lists, label updates, workflow fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user