|
It appears you're trying to do this: $info->update($fields, "user_id = (SELECT id FROM users WHERE nick = ?)" => $userNick); As long as your nicks are unique, this will work. Note that this will produce an error on MS SQL due to a PHP bug. Regards, Bryce Lohr ViShap wrote: I can't see how to update (sorry, my mistake, not select *doh* ;) ) this? In the Manual I can't find a part, where it is described, how to do this?How should I do this: Table User: | Table Info ID | user_ID Nick | information Now let´s say classes are named like the tables, all Relationships have been entered. How can I now do an Update like this: $Info->update() doing the following: Update "Info.information" where "Info.user_ID" is the to "user.Nick" corresponding "user.ID" ? For example: User "dummy" has ID 23. Now I want to update Info.information only knowing the dummy! Sorry, I don´t understand how it should work. Best regards and thanks for the help ViShap -----Original Message----- From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED]] Sent: Montag, 22. Oktober 2007 21:50 To: [email protected] Subject: Re: [fw-general] Zend_Db_Table_Ralationships and select() -- ViShap <[EMAIL PROTECTED]> wrote (on Monday, 22 October 2007, 08:34 PM +0200): |
- [fw-general] Zend_Db_Table_Ralationships and selec... ViShap
- Re: [fw-general] Zend_Db_Table_Ralationships ... Matthew Weier O'Phinney
- RE: [fw-general] Zend_Db_Table_Ralationsh... ViShap
- Re: [fw-general] Zend_Db_Table_Ralati... Matthew Weier O'Phinney
- Re: [fw-general] Zend_Db_Table_Ralati... Bryce Lohr
- RE: [fw-general] Zend_Db_Table_Ra... ViShap
- Re: [fw-general] Zend_Db_Tab... Bryce Lohr
- RE: [fw-general] Zend_Db... ViShap
- Re: [fw-general] Zend_Db_Tab... Matthew Weier O'Phinney
- RE: [fw-general] Zend_Db... ViShap
- Re: [fw-general] Zen... Darby Felton
- Re: [fw-general] Zen... Matthew Weier O'Phinney
