Skip to content

Commit

Permalink
Fix more uses of Set -> Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 27, 2012
1 parent 9015d78 commit a76a926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Model/Model.php
Expand Up @@ -22,7 +22,7 @@
App::uses('ClassRegistry', 'Utility');
App::uses('Validation', 'Utility');
App::uses('String', 'Utility');
App::uses('Set', 'Utility');
App::uses('Hash', 'Utility');
App::uses('BehaviorCollection', 'Model');
App::uses('ModelBehavior', 'Model');
App::uses('ConnectionManager', 'Model');
Expand Down Expand Up @@ -2873,7 +2873,7 @@ protected function _findNeighbors($state, $query, $results = array()) {
unset($query['conditions'][$field . ' <']);
$return = array();
if (isset($results[0])) {
$prevVal = Set::extract('/' . str_replace('.', '/', $field), $results[0]);
$prevVal = Hash::get($results[0], $field);
$query['conditions'][$field . ' >='] = $prevVal[0];
$query['conditions'][$field . ' !='] = $value;
$query['limit'] = 2;
Expand Down
3 changes: 2 additions & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -14,6 +14,7 @@
*/

App::uses('AppHelper', 'View/Helper');
App::uses('Hash', 'Utility');

/**
* Form helper library.
Expand Down Expand Up @@ -965,7 +966,7 @@ public function inputs($fields = null, $blacklist = null) {
public function input($fieldName, $options = array()) {
$this->setEntity($fieldName);

$options = Set::merge(
$options = Hash::merge(
array('before' => null, 'between' => null, 'after' => null, 'format' => null),
$this->_inputDefaults,
$options
Expand Down

0 comments on commit a76a926

Please sign in to comment.