2010年8月3日星期二

[fw-db] Db_Table createRow() & duplicate keys

Is there a time-honored way of handling createRow() and avoiding
duplicate key exceptions?

My first choice for MySQL is ON DUPLICATE KEY UPDATE, but that's not
wired into Zend_Db.

So what's left? Use find() and if no results createRow()? That seems
rather atypically cumbersome in the world of Zend_Db wizardry.

没有评论: