mbneto wrote:
> 
> I have custom classes that extend Zend_Db_Table_Abstract for which I pass
> aditional parameters besides the ones needed by Zend_Db_Table_Abstract
> (the
> $db).   I am using a findManyToManyRowset and I could no find a way to
> pass
> those extra parameters to the new created classes.
> 

Correct.  The table-relationships methods (e.g. findManyToManyRowset()) do
not give you an opportunity to pass custom options to the constructor of the
related table.  This was done to keep the usage simple.

If you need options to be in effect, you can either build those into the
class definition for your related table, or else you can forget about
table-relationships methods and instead instantiate tables yourself.

The philosophy of the Zend Framework was to keep usage "extremely simple" in
the most common cases, while allowing developers access to more advanced
features in the less common cases.  Not every interface needs to support
every bit of functionality.

Regards,
Bill Karwin
-- 
View this message in context: 
http://www.nabble.com/Passing-custom-options-to-findManyToManyRowset-tp19778865p19785382.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to