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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-10-2007, 02:39 PM
Junior Member
 
Join Date: Dec 2007
Posts: 14
Default Zend_Db_Table vs OO Update

Hey,

I have to ask a quick question.
Have I missed some feature or Zend does not support full two-way database operation?
I mean according to:
Zend Framework: Documentation
I have to prepare an array an then to non OO update like
$table->update($fieldsarray,$whereClause);

whereas I would expect
$tableRowObject->aField = "aValue";
$tableRowObject->bField = "bValue";
$tableRowObject->id= "id";
$tableRowObject->save;

Is this possible?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-10-2007, 02:50 PM
Junior Member
 
Join Date: Oct 2007
Posts: 16
Default

Zend_Db_Table_Row supports this feature.
See: Writing rows to the database

Last edited by troxy : 12-10-2007 at 02:54 PM.
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 04:14 PM.