Hello,

I'd like to pass the result of a database query into the Zend_Form isValidPartial() method to pre-populate a form and analyze errors if applicable. Something like

$rowset = $this->_table->find( '1' );
$row = $rowset->current();

$form->isValidPartial( $row );

However this isn't allowed as the isValidPartial() uses the "array" type hint and $row is an object. I've tried using SPL to implement array access but that doesn't seem to change anything. Is there a way to do this or do I have to convert the object to an array first?

Thanks.

- Jeff

Reply via email to