From 1351b4a417e4ca9985bbcba9f1dc2d80ed1df299 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 1 Jul 2019 19:59:19 -0400 Subject: [PATCH] [#14213] - Correct model references --- phalcon/Mvc/Model/Resultset/Complex.zep | 10 +++++----- phalcon/Mvc/Model/Resultset/Simple.zep | 11 ++++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/phalcon/Mvc/Model/Resultset/Complex.zep b/phalcon/Mvc/Model/Resultset/Complex.zep index 800933ba486..bd0090ba6a6 100644 --- a/phalcon/Mvc/Model/Resultset/Complex.zep +++ b/phalcon/Mvc/Model/Resultset/Complex.zep @@ -10,11 +10,11 @@ namespace Phalcon\Mvc\Model\Resultset; -use Phalcon\Mvc\Model; -use Phalcon\Mvc\Model\Row; use Phalcon\Db\ResultInterface; -use Phalcon\Mvc\Model\Resultset; +use Phalcon\Mvc\Model\AbstractModel; use Phalcon\Mvc\Model\Exception; +use Phalcon\Mvc\Model\Row; +use Phalcon\Mvc\Model\Resultset; use Phalcon\Mvc\Model\ResultsetInterface; use Phalcon\DiInterface; use Phalcon\Di; @@ -187,7 +187,7 @@ class Complex extends Resultset implements ResultsetInterface * Get the base instance. Assign the values to the * attributes using a column map */ - let value = Model::cloneResultMap( + let value = AbstractModel::cloneResultMap( column["instance"], rowModel, columnMap, @@ -200,7 +200,7 @@ class Complex extends Resultset implements ResultsetInterface default: // Other kinds of hydration - let value = Model::cloneResultMapHydrate( + let value = AbstractModel::cloneResultMapHydrate( rowModel, columnMap, hydrateMode diff --git a/phalcon/Mvc/Model/Resultset/Simple.zep b/phalcon/Mvc/Model/Resultset/Simple.zep index 35d9dc3a559..139e90dd1fc 100644 --- a/phalcon/Mvc/Model/Resultset/Simple.zep +++ b/phalcon/Mvc/Model/Resultset/Simple.zep @@ -12,7 +12,8 @@ namespace Phalcon\Mvc\Model\Resultset; use Phalcon\Di; use Phalcon\DiInterface; -use Phalcon\Mvc\Model; +use Phalcon\Mvc\Model\AbstractModel; +use Phalcon\Mvc\Model\Enum; use Phalcon\Mvc\Model\Exception; use Phalcon\Mvc\Model\Resultset; use Phalcon\Cache\Adapter\AdapterInterface; @@ -113,15 +114,15 @@ class Simple extends Resultset this->model, row, columnMap, - Model::DIRTY_STATE_PERSISTENT, + Enum::DIRTY_STATE_PERSISTENT, this->keepSnapshots ); } else { - let activeRow = Model::cloneResultMap( + let activeRow = AbstractModel::cloneResultMap( this->model, row, columnMap, - Model::DIRTY_STATE_PERSISTENT, + Enum::DIRTY_STATE_PERSISTENT, this->keepSnapshots ); } @@ -132,7 +133,7 @@ class Simple extends Resultset /** * Other kinds of hydrations */ - let activeRow = Model::cloneResultMapHydrate( + let activeRow = AbstractModel::cloneResultMapHydrate( row, columnMap, hydrateMode