Skip to content

Commit

Permalink
Update deprecated dbal const
Browse files Browse the repository at this point in the history
  • Loading branch information
Abban committed Nov 6, 2021
1 parent 86cf17c commit 4ece88c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataAccess/DoctrineSubscriptionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace WMDE\Fundraising\SubscriptionContext\DataAccess;

use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\ORMException;
use WMDE\Fundraising\SubscriptionContext\Domain\Model\Subscription;
Expand Down Expand Up @@ -44,7 +44,7 @@ public function countSimilar( Subscription $subscription, \DateTime $cutoffDateT
->where( $qb->expr()->eq( 's.email', ':email' ) )
->andWhere( $qb->expr()->gt( 's.createdAt', ':cutoffDate' ) )
->setParameter( 'email', $subscription->getEmail() )
->setParameter( 'cutoffDate', $cutoffDateTime, Type::DATETIME )
->setParameter( 'cutoffDate', $cutoffDateTime, Types::DATETIME_MUTABLE )
->getQuery();
try {
return (int)$query->getSingleScalarResult();
Expand Down

0 comments on commit 4ece88c

Please sign in to comment.