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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2008, 04:02 PM
Junior Member
 
Join Date: Apr 2008
Posts: 10
Default Delete, update and insert in joined table (model)

hi guys how do i delete , update or insert
from the joined tabled (model) this way
for example is there a way to fetch some data form joined table and
delete ot update that with obj->save()
thanks for you time and help

class Blog extends Zend_Db_Table_Abstract {
protected $_name = 'blog_posts';
protected $_dependentTables = array('Blog_Category');

}

class Blog_Category extends Zend_Db_Table_Abstract {
protected $_name = 'blog_category';
protected $_referenceMap = array(
'Blog' => array(
'columns' => array('term_id'),
'refTableClass' => 'Blog',
'refColumns' => array('post_category')
)
);
}
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 10:13 PM.