Fix tests, code typos and style

This commit is contained in:
Amine Ben hammou
2019-03-11 19:34:42 +01:00
committed by M. Shull
parent afe7aa0a54
commit 114a8281a9
8 changed files with 23 additions and 8 deletions

View File

@ -58,6 +58,7 @@ if (!defined('ABSPATH')) exit;
* @method $this whereIdIn($ids)
* @method static static whereIdIn($ids)
* @method $this whereLike($column_name, $value=null)
* @method static $this whereLike($column_name, $value=null)
* @method $this whereNotLike($column_name, $value=null)
* @method $this whereGt($column_name, $value=null)
* @method static $this whereLt($column_name, $value=null)
@ -157,7 +158,7 @@ class Model extends \Sudzy\ValidModel {
$model = $model->where($field, $value);
}
}
$model = $model->findOne();
if ($model) $model = $model->findOne();
}
if ($model === false) {