eee
This commit is contained in:
+1
-2
@@ -248,8 +248,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
|
||||
} else {
|
||||
$query->whereRaw($param);
|
||||
}
|
||||
$data = $query->first();
|
||||
if ($data === false) {
|
||||
if (($data = $query->first()) === false) {
|
||||
throw new Exception($model->getLastError());
|
||||
}
|
||||
return $data;
|
||||
|
||||
Reference in New Issue
Block a user