const ID usage

This commit is contained in:
Yuri Kuznetsov
2024-11-11 17:41:22 +02:00
parent 0531b7239c
commit 6d1c4d2aa8
85 changed files with 252 additions and 173 deletions
+3 -2
View File
@@ -37,6 +37,7 @@ use Espo\Core\Field\DateTime;
use Espo\ORM\Collection;
use Espo\ORM\Entity as OrmEntity;
use Espo\ORM\Name\Attribute;
use RuntimeException;
use stdClass;
@@ -167,10 +168,10 @@ class Note extends Entity
$collection = $this->entityManager
->getRDBRepository(Attachment::ENTITY_TYPE)
->select(['id', 'name', 'type'])
->select([Attribute::ID, 'name', 'type'])
->order(Field::CREATED_AT)
->where([
'id' => $attachmentsIds
Attribute::ID => $attachmentsIds
])
->find();