mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Revert "Takes into account the current recursive value in deleteAll()."
This commit is contained in:
parent
fef1029f98
commit
cd6fba1361
1 changed files with 2 additions and 2 deletions
|
@ -2832,12 +2832,12 @@ class Model extends CakeObject implements CakeEventListener {
|
|||
if (!$cascade && !$callbacks) {
|
||||
return $db->delete($this, $conditions);
|
||||
}
|
||||
$recursive = min($this->recursive, 0);
|
||||
|
||||
$ids = $this->find('all', array_merge(array(
|
||||
'fields' => "{$this->alias}.{$this->primaryKey}",
|
||||
'order' => false,
|
||||
'group' => "{$this->alias}.{$this->primaryKey}",
|
||||
'recursive' => $recursive), compact('conditions'))
|
||||
'recursive' => 0), compact('conditions'))
|
||||
);
|
||||
|
||||
if ($ids === false || $ids === null) {
|
||||
|
|
Loading…
Reference in a new issue