Details
-
Type:
Docs: Improvement
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Not an Issue
-
Affects Version/s: 0.9.2
-
Fix Version/s: 1.9.3
-
Component/s: Zend_Db_Table
-
Labels:None
-
Fix Version Priority:Nice to Have
Description
Add an option to enable or disable DRI by Zend_Db_Table. Only if it is set "true" the cascading write operations will be done by Zend_Db_Table. So you can switch easily to a non-DRI rdbms.
The option to control this is in the $_referenceMap variable. Set the 'onUpdate' and 'onDelete' elements to the constant value self::RESTRICT to disable cascading.
I'd be glad to add a paragraph in the docs describing the above more clearly.
Switching RDBMS brands (or switching a MySQL InnoDB table to a MyISAM table) should be a very infrequent change, and would require many other code changes anyway, so changing a single value in the $_referenceMap declaration should be no problem. In my opinion it's not necessary to implement more code in Zend_Db_Table to handle this situation.