mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 13:34:28 +02:00
Update timestamp of the associated element.
For example the lastModified timestamp of a part is now updated, when the user changes a price information. This should represent more what a user expects under a last Modified field and should improve also sorting...
This commit is contained in:
parent
2b21d4039a
commit
dbf770f784
7 changed files with 68 additions and 4 deletions
|
@ -62,7 +62,7 @@ final class BarcodeExampleElementsGenerator
|
|||
$part->setManufacturerProductNumber('CUSTOM MPN');
|
||||
$part->setTags('Tag1, Tag2, Tag3');
|
||||
$part->setManufacturingStatus('active');
|
||||
$part->updatedTimestamps();
|
||||
$part->updateTimestamps();
|
||||
|
||||
$part->setFavorite(true);
|
||||
$part->setMinAmount(100);
|
||||
|
@ -90,7 +90,7 @@ final class BarcodeExampleElementsGenerator
|
|||
$storelocation = new Storelocation();
|
||||
$storelocation->setName('Location 1');
|
||||
$storelocation->setComment('Example comment');
|
||||
$storelocation->updatedTimestamps();
|
||||
$storelocation->updateTimestamps();
|
||||
|
||||
$parent = new Storelocation();
|
||||
$parent->setName('Parent');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue