We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eebfe94 commit fc9747aCopy full SHA for fc9747a
src/Exceptions/EntityNotFoundException.php
@@ -4,12 +4,27 @@
4
5
class EntityNotFoundException extends CycleORMException
6
{
7
+ private string $entityClass;
8
+ private int|string $identifier;
9
+
10
public function __construct(
11
string $entityClass,
12
int|string $identifier,
13
?\Throwable $previous = null
14
) {
15
+ $this->entityClass = $entityClass;
16
+ $this->identifier = $identifier;
17
$message = "Entity {$entityClass} with identifier {$identifier} not found";
18
parent::__construct($message, 0, $previous);
19
}
20
21
+ public function getEntityClass(): string
22
+ {
23
+ return $this->entityClass;
24
+ }
25
26
+ public function getIdentifier(): int|string
27
28
+ return $this->identifier;
29
30
0 commit comments