Added missing lastModified and creationDate fields to API response

This commit is contained in:
Jan Böhmer 2023-10-04 00:08:10 +02:00
parent e09f60e71f
commit 64c38042a0
9 changed files with 56 additions and 4 deletions

View file

@ -177,6 +177,12 @@ class Category extends AbstractPartsContainingDBElement
#[ORM\OrderBy(['group' => 'ASC', 'name' => 'ASC'])]
protected Collection $parameters;
#[Groups(['category:read'])]
protected ?\DateTimeInterface $addedDate = null;
#[Groups(['category:read'])]
protected ?\DateTimeInterface $lastModified = null;
public function getPartnameHint(): string
{
return $this->partname_hint;