Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-18-2008, 12:23 PM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default 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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:09 AM.