Fix more uses of Set -> Hash

This commit is contained in:
mark_story 2012-03-13 22:06:20 -04:00
parent 9015d78017
commit a76a926ac1
2 changed files with 4 additions and 3 deletions

View file

@ -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');
@ -2873,7 +2873,7 @@ class Model extends Object implements CakeEventListener {
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;

View file

@ -14,6 +14,7 @@
*/
App::uses('AppHelper', 'View/Helper');
App::uses('Hash', 'Utility');
/**
* Form helper library.
@ -965,7 +966,7 @@ class FormHelper extends AppHelper {
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