mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Added missing lastModified and creationDate fields to API response
This commit is contained in:
parent
e09f60e71f
commit
64c38042a0
9 changed files with 56 additions and 4 deletions
|
@ -36,8 +36,6 @@ use ApiPlatform\Metadata\Post;
|
|||
use ApiPlatform\Serializer\Filter\PropertyFilter;
|
||||
use App\ApiPlatform\Filter\LikeFilter;
|
||||
use App\Entity\Attachments\Attachment;
|
||||
use App\Entity\Attachments\AttachmentTypeAttachment;
|
||||
use App\Entity\Parts\Footprint;
|
||||
use App\Repository\CurrencyRepository;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
use App\Entity\Attachments\CurrencyAttachment;
|
||||
|
@ -152,6 +150,12 @@ class Currency extends AbstractStructuralDBElement
|
|||
#[ORM\OneToMany(targetEntity: Pricedetail::class, mappedBy: 'currency')]
|
||||
protected Collection $pricedetails;
|
||||
|
||||
#[Groups(['currency:read'])]
|
||||
protected ?\DateTimeInterface $addedDate = null;
|
||||
#[Groups(['currency:read'])]
|
||||
protected ?\DateTimeInterface $lastModified = null;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->children = new ArrayCollection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue