2009年2月26日星期四

Re: [fw-db] Opinions on ZF-5699 needed

It should throw an exception across all adapters.  Returning an empty rowset is confusing in this scenario.  It's not hard to do a try/catch.

-Matt

On Thu, Feb 26, 2009 at 7:54 AM, Ralph Schindler <ralph.schindler@zend.com> wrote:
Link: http://framework.zend.com/issues/browse/ZF-5699

Title: Zend_Db_Table_Abstract::findDependentRowset throws an error when
called on unsaved Zend_Db_Table_Row (with PDO_MYSQL)

Hi all,

Take a moment to review the above (if you are interested), as I am
soliciting feedback as per what to do.

My question is, in such situations, should this return an empty rowset, or
should it throw an exception?

Please leave comments in the issue.

Thanks!
Ralph



--
Ralph Schindler
Software Engineer     | ralph.schindler@zend.com
Zend Framework        | http://framework.zend.com/



没有评论: