Issues

ZF-8291: cascading operations

Issue Type: Improvement Created: 2009-11-11T12:18:57.000+0000 Last Updated: 2012-05-30T11:38:07.000+0000 Status: Closed Fix version(s): Reporter: Simone Cosci (fsockopen) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Db_Table

Related issues: Attachments:

Description

If the Zend_Db_Table_Row during delete() method calls: 619 $t->_cascadeDelete($this->getTableClass(), $pk); why don't you give back to the Zend_Db_Table_Row the possibility to _cascadeDelete instead of call delete() on the Zend_Db_Table ? in this way the delete() method could be called on the rows making the cascade really recursive not only one level.

1183 //$rowsAffected += $this->delete($where); 1184 $select = $this->select()->where($where); 1185 $rows = $this->fetchAll($select); 1186 foreach($rows as $row) { 1187 $rowsAffected += $row->delete(); 1188 }

greetings Simone C.

Comments

Posted by Adam Lundrigan (adamlundrigan) on 2012-05-30T11:38:07.000+0000

Either not an issue or was fixed in the past. Zend_Db_Table_Row_Abstract::delete does currently execute cascading deletes against depended tables.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts