mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Merging fixes from [3908] for Ticket #1689
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3909 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b76c2179e1
commit
87af38c7dc
1 changed files with 4 additions and 0 deletions
|
@ -1159,6 +1159,8 @@ class Model extends Overloadable {
|
|||
* @access protected
|
||||
*/
|
||||
function _deleteHasMany($id, $cascade) {
|
||||
$records = array();
|
||||
|
||||
foreach($this->hasMany as $assoc => $data) {
|
||||
if ($data['dependent'] === true && $cascade === true) {
|
||||
$model =& $this->{$data['className']};
|
||||
|
@ -1180,6 +1182,8 @@ class Model extends Overloadable {
|
|||
* @access protected
|
||||
*/
|
||||
function _deleteHasOne($id, $cascade) {
|
||||
$records = array();
|
||||
|
||||
foreach($this->hasOne as $assoc => $data) {
|
||||
if ($data['dependent'] === true && $cascade === true) {
|
||||
$model =& $this->{$data['className']};
|
||||
|
|
Loading…
Add table
Reference in a new issue