From c09766a4df63d91ca93042467afb62fc0dd24cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tautvidas=20Sipavi=C4=8Dius?= Date: Wed, 23 Jan 2019 16:36:17 +0200 Subject: [PATCH] Add undocumented Model methods to PHPDoc to fix Premium rules --- lib/Models/Model.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Models/Model.php b/lib/Models/Model.php index 8db2eb855a..d99d934cd2 100644 --- a/lib/Models/Model.php +++ b/lib/Models/Model.php @@ -26,6 +26,7 @@ if(!defined('ABSPATH')) exit; * @method $this rawQuery($query, $parameters = array()) * @method $this tableAlias($alias) * @method int countNullIdColumns() + * @method $this select($column, $alias=null) * @method $this selectExpr($expr, $alias=null) * @method \ORM selectMany($values) * @method \ORM selectManyExpr($values) @@ -34,6 +35,7 @@ if(!defined('ABSPATH')) exit; * @method $this leftOuterJoin($table, $constraint, $table_alias=null) * @method $this rightOuterJoin($table, $constraint, $table_alias=null) * @method $this fullOuterJoin($table, $constraint, $table_alias=null) + * @method $this where($column_name, $value=null) * @method $this whereEqual($column_name, $value=null) * @method $this whereNotEqual($column_name, $value=null) * @method $this whereIdIs($id) @@ -73,6 +75,7 @@ if(!defined('ABSPATH')) exit; * @method static $this clearCache($table_name = null, $connection_name = self::DEFAULT_CONNECTION) * @method bool setExpr($key, $value = null) * @method bool isDirty($key) + * @method $this table_alias($alias) */ class Model extends \Sudzy\ValidModel { const DUPLICATE_RECORD = 23000;