Skip to content

Commit

Permalink
[#14213] - Correct model references
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jul 1, 2019
1 parent b3af058 commit 1351b4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions phalcon/Mvc/Model/Resultset/Complex.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down
11 changes: 6 additions & 5 deletions phalcon/Mvc/Model/Resultset/Simple.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
);
}
Expand All @@ -132,7 +133,7 @@ class Simple extends Resultset
/**
* Other kinds of hydrations
*/
let activeRow = Model::cloneResultMapHydrate(
let activeRow = AbstractModel::cloneResultMapHydrate(
row,
columnMap,
hydrateMode
Expand Down

0 comments on commit 1351b4a

Please sign in to comment.