• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

brick / orm / 23255296146

18 Mar 2026 04:24PM UTC coverage: 47.104%. Remained the same
23255296146

push

github

BenMorel
Avoid \Exception that somehow confuses ECS

1 of 5 new or added lines in 1 file covered. (20.0%)

402 existing lines in 24 files now uncovered.

553 of 1174 relevant lines covered (47.1%)

10.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Exception/EntityNotFoundException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Brick\ORM\Exception;
6

7
use function sprintf;
8

9
/**
10
 * Exception thrown when attempting to load an entity that does not exist in the database.
11
 *
12
 * This exception will typically be thrown when attempting to load a proxy, or manually hydrate an entity, whose
13
 * identity is not found in the database.
14
 */
15
class EntityNotFoundException extends ORMException
16
{
17
    /**
18
     * @param class-string     $className      The entity class name.
19
     * @param list<int|string> $scalarIdentity The identity, as a list of int or string values.
20
     */
21
    public static function entityNotFound(string $className, array $scalarIdentity): self
22
    {
UNCOV
23
        return new self(sprintf(
×
24
            'The entity %s with identity %s was not found.',
×
25
            $className,
×
26
            self::exportScalarIdentity($scalarIdentity),
×
27
        ));
×
28
    }
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc