Skip to content

Commit a15b705

Browse files
author
euromark
committed
Remove recursive property calls.
1 parent ae517ad commit a15b705

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ before_script:
3131
- echo "<?php App::uses('BaseEmailConfig', 'Tools.Config'); class EmailConfig extends BaseEmailConfig {}" > Config/email.php
3232
- echo "Configure::write('Config.adminEmail', '[email protected]');" >> Config/bootstrap.php
3333
- cd ..
34-
34+
3535
script:
3636
- ../travis/script.sh
3737

Console/Command/ResetShell.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public function email() {
4444

4545
$this->hr();
4646
$this->out('resetting...');
47-
Configure::write('debug', 2);
48-
$this->User->recursive = -1;
4947
$this->User->updateAll(['User.email' => '\'' . $email . '\''], ['User.email !=' => $email]);
5048
$count = $this->User->getAffectedRows();
5149
$this->out($count . ' emails resetted - DONE');
@@ -104,7 +102,6 @@ public function pwd() {
104102
}
105103

106104
$newPwd = '\'' . $pw . '\'';
107-
$this->User->recursive = -1;
108105
$this->User->updateAll(['password' => $newPwd], ['password !=' => $pw]);
109106
$count = $this->User->getAffectedRows();
110107
$this->out($count . ' pwds resetted - DONE');

Model/Behavior/LogableBehavior.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ public function beforeDelete(Model $Model, $cascade = true) {
367367
if (isset($this->settings[$Model->alias]['skip']['delete']) && $this->settings[$Model->alias]['skip']['delete']) {
368368
return true;
369369
}
370-
$Model->recursive = -1;
371370
$Model->read();
372371
return true;
373372
}

0 commit comments

Comments
 (0)