You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace Lc\CaracoleBundle\Repository\File;
-
- use Lc\CaracoleBundle\Repository\MerchantStoreTrait;
- use Lc\SovBundle\Repository\AbstractStore;
-
- class DocumentStore extends AbstractStore
- {
- use MerchantStoreTrait;
-
- protected DocumentRepositoryQuery $query;
-
- public function __construct(DocumentRepositoryQuery $query)
- {
- $this->query = $query;
- }
-
- public function getOneLatestByType(string $documentType)
- {
- // @TODO : à écrire
- }
-
- //findLastInvoice
- public function getOneLastInvoice()
- {
- $query = $this->query->create();
-
- $query
- ->filterByMerchant($this->merchant)
- ->orderBy('.createdAt', 'DESC');
-
- return $query->findOne();
- }
- }
|