Skip to content

Commit

Permalink
[ECP-9489] Use interface constant for query field name
Browse files Browse the repository at this point in the history
  • Loading branch information
Can Demiralp committed Jan 28, 2025
1 parent a342bb3 commit 75bf608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Model/ResourceModel/Invoice/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace Adyen\Payment\Model\ResourceModel\Invoice;

use Adyen\Payment\Api\Data\InvoiceInterface;
use Adyen\Payment\Model\Notification;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
Expand Down Expand Up @@ -89,7 +90,7 @@ public function getIdByPspreference(string $pspreference): string
$connection = $this->getConnection();

$select = $connection->select()
->from($this->getMainTable(), 'entity_id')
->from($this->getMainTable(), InvoiceInterface::ENTITY_ID)
->where('pspreference = :pspreference');

$bind = [':pspreference' => $pspreference];
Expand Down

0 comments on commit 75bf608

Please sign in to comment.