Skip to content

Commit

Permalink
dev: Fix Doctrine deprecation warning about ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
marien-probesys committed Jun 6, 2024
1 parent 2e50007 commit 2310c67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Entity/Ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\Criteria;
use Doctrine\Common\Collections\Expr\Comparison;
use Doctrine\Common\Collections\Order;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Translation\TranslatableMessage;
Expand Down Expand Up @@ -509,7 +510,7 @@ public function getUnaccountedTimeSpents(): Collection
$criteria = Criteria::create();
$expr = Criteria::expr()->isNull('contract');
$criteria->where($expr);
$criteria->orderBy(['createdAt' => 'ASC']);
$criteria->orderBy(['createdAt' => Order::Ascending]);

/** @var ArrayCollection<int, TimeSpent> */
$timeSpents = $this->timeSpents;
Expand Down

0 comments on commit 2310c67

Please sign in to comment.