Skip to content

Commit

Permalink
Update more deprecated method usage.
Browse files Browse the repository at this point in the history
Refs #10128
  • Loading branch information
markstory committed Feb 3, 2017
1 parent 8569158 commit 46fc1d1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Network/Session/DatabaseSession.php
Expand Up @@ -96,7 +96,7 @@ public function read($id)
->find('all')
->select(['data'])
->where([$this->_table->getPrimaryKey() => $id])
->hydrate(false)
->enableHydration(false)
->first();

if (empty($result)) {
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Association/Loader/SelectLoader.php
Expand Up @@ -169,7 +169,7 @@ protected function _buildQuery($options)
->select($options['fields'])
->where($options['conditions'])
->eagerLoaded(true)
->hydrate($options['query']->hydrate());
->enableHydration($options['query']->isHydrationEnabled());

if ($useSubquery) {
$filter = $this->_buildSubquery($options['query']);
Expand Down
4 changes: 2 additions & 2 deletions src/ORM/Behavior/TranslateBehavior.php
Expand Up @@ -647,8 +647,8 @@ protected function _findExistingTranslations($ruleSet)
$query = $association->find()
->select(['id', 'num' => 0])
->where(current($ruleSet))
->hydrate(false)
->bufferResults(false);
->enableHydration(false)
->enableBufferedResults(false);

unset($ruleSet[0]);
foreach ($ruleSet as $i => $conditions) {
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Behavior/TreeBehavior.php
Expand Up @@ -827,7 +827,7 @@ protected function _recoverTree($counter = 0, $parentId = null, $level = -1)
->select([$aliasedPrimaryKey])
->where([$this->_table->aliasField($parent) . ' IS' => $parentId])
->order($order)
->hydrate(false);
->enableHydration(false);

$leftCounter = $counter;
$nextLevel = $level + 1;
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Table.php
Expand Up @@ -1610,7 +1610,7 @@ public function exists($conditions)
->select(['existing' => 1])
->where($conditions)
->limit(1)
->hydrate(false)
->enableHydration(false)
->toArray()
);
}
Expand Down

0 comments on commit 46fc1d1

Please sign in to comment.