2009年8月9日星期日

[fw-db] update Zend_Db_Table_Abstract

Hi!

I have a little problem and I need a little help.
So, I have this table

moviesperson
id| person_id | movie_id | work_id | isactive | updated
--+-----------+------------+---------+--------+----------
1 | 5 | 1 | 1 | 1
| 2008-08-09 12:33:33

I'm storing who is who in one production. Who is the director, who are
the main actor, etc.
If the user modifying the data I need an update like this:
UPDATE moviesperson SET work_id = 2 WHERE person_id = 5 AND isactive = 1

But, I can only set only one parameter[1] in the Zend_Db_Table
quoteInto method. How can I do this with Zend_Db_Table ?

[1] - http://framework.zend.com/manual/en/zend.db.table.html#zend.db.table.delete

I would appreciate your kind help!

András

--
- -
-- Csanyi Andras -- http://sayusi.hu -- Sayusi Ando
-- "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell

没有评论: