Merge branch 'develop'
This commit is contained in:
@ -342,7 +342,7 @@ class Model {
|
||||
return $orm->offset($this->offset);
|
||||
}
|
||||
|
||||
public function one($id = null): ModelInterface {
|
||||
public function one($id = null): ?ModelInterface {
|
||||
$result = $this->build()->findOne($id);
|
||||
if (!$result) {
|
||||
return false;
|
||||
@ -350,7 +350,7 @@ class Model {
|
||||
$result->setFactory($this);
|
||||
return $result;
|
||||
}
|
||||
public function many(): array {
|
||||
public function many(): ?array {
|
||||
$results = $this->build()->findMany();
|
||||
if (!$results) {
|
||||
return false;
|
||||
@ -360,7 +360,7 @@ class Model {
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
public function array(): array {
|
||||
public function array(): ?array {
|
||||
$results = $this->build()->findArray();
|
||||
if (!$results) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user