Zend_Db_Table and Views
Hi, I am pretty new to Zend_Db_Table. My problem is this...normally I prefer to use views instead of tables to access my data. The views are normally joins. Using views to fetch data works well but I am breaking my head over changing data. I can't write to a muti table view so I thought of this:
I want to override the update, insert, delete methods of the view class with custom logic to forward the changes to the original tables (normally just 2). So for example a custom delete method in the view class would actually call the delete method of the original table class(es).
Can anyone tell me if it would work this way, especially if it would still be possible to use the save() methods on a row objects derived from the view class? Or am I completely on the wrong track and there is a better way to handle this?
|