diff --git a/src/Repository/AttachmentRepository.php b/src/Repository/AttachmentRepository.php index 0a6b1db2..d17068e0 100644 --- a/src/Repository/AttachmentRepository.php +++ b/src/Repository/AttachmentRepository.php @@ -66,7 +66,7 @@ class AttachmentRepository extends DBElementRepository } /** - * Gets the count of all external attachments (attachments containing an external path). + * Gets the count of all external attachments (attachments containing only an external path). * * @throws NoResultException * @throws NonUniqueResultException @@ -75,7 +75,7 @@ class AttachmentRepository extends DBElementRepository { $qb = $this->createQueryBuilder('attachment'); $qb->select('COUNT(attachment)') - ->andWhere('attaachment.internal_path IS NULL') + ->andWhere('attachment.internal_path IS NULL') ->where('attachment.external_path IS NOT NULL'); $query = $qb->getQuery();