Skip to content

Commit a7164da

Browse files
committed
Model::findOne() method executes DB::findOne() method but does not return, error fixed.
1 parent f735cb5 commit a7164da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public final function readOne(array $selector = [], array $conditions = [], arra
291291
if($this->isReadable() === FALSE){
292292
throw new ModelPermissionException('"' . \get_called_class() . '" is not a readable model.');
293293
}
294-
parent::readOne($selector, $conditions, $parameters);
294+
return parent::readOne($selector, $conditions, $parameters);
295295
}
296296

297297
/**

0 commit comments

Comments
 (0)