2008年8月2日星期六

[fw-db] Delete, update and insert in joined table (model)

hello everyone how do i delete , update or insert
from the joined tabled (model) this way (below)

for example is there a way to fetch some data form joined table and
delete or update them 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')
)
);
}
--
View this message in context: http://www.nabble.com/Delete%2C-update-and-insert-in-joined-table-%28model%29-tp18790541p18790541.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: