On 9/29/07, Ralf Kramer <[EMAIL PROTECTED]> wrote:
> Am Donnerstag, den 27.09.2007, 15:25 -0500 schrieb Ralph Schindler:
> > Actually, I did find that Rowset->toArray() does indeed return a
> > reference to a protected member of the rowset object instead of an
> > array.  I marked that as a bug for rowset.
> >
> > http://framework.zend.com/issues/browse/ZF-1898
>
> I dont know whether this is an issue, but the origin problem is already
> solved, I just forgot to to call $rowset->current()->toArray() instead
> of $rowset->toArray();
>
> So the actual problem is imho in the return value of $table->find(1234);
> which is a rowset, but I would expect a row since I search on a primary
> key. Getting a row in this case feels somewhat more "natural" to me.

The find() method accepts arrays with several primary keys and may
return several records in a result. ZF developers consider to have one
return type instead of changing it depending on number of records in
the resultset.

Sincerely,
Alex

-- 
http://www.alexatnet.com/ - consulting, blog, articles and support for
PHP, ZF, JavaScript and web development.

Reply via email to