This commit is contained in:
Yuri Kuznetsov
2021-11-04 15:54:48 +02:00
parent 49b55236d0
commit d125d8f067
31 changed files with 85 additions and 26 deletions
@@ -118,7 +118,7 @@ class RDBRepository implements Repository
])
->build();
/** @var T $entity */
/** @var ?T $entity */
$entity = $this->getMapper()->selectOne($selectQuery);
return $entity;
@@ -126,6 +126,8 @@ class RDBRepository implements Repository
/**
* Get an entity. If ID is NULL, a new entity is returned.
*
* @phpstan-return ?T
*/
public function get(?string $id = null): ?Entity
{