Skip to content
Permalink
Browse files

Update more deprecated method usage.

Refs #10128
  • Loading branch information...
markstory committed Feb 3, 2017
1 parent 8569158 commit 46fc1d14a76367d842a70a5f85c24dccdb10a58d
@@ -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)) {
@@ -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']);
@@ -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) {
@@ -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;
@@ -1610,7 +1610,7 @@ public function exists($conditions)
->select(['existing' => 1])
->where($conditions)
->limit(1)
->hydrate(false)
->enableHydration(false)
->toArray()
);
}

0 comments on commit 46fc1d1

Please sign in to comment.
You can’t perform that action at this time.