On 14 Mar 2006, [EMAIL PROTECTED] wrote:
> Can you think of a good way to pass custom manager_args to individual calls
> to a relationship accessor? Maybe a new read-only accessor type where
> arguments can't possible be meant to set values?
Maybe this will work:
$company->products({ id => 123 }, { id => 456 },
[ sort_by => whatever]);
In general you could use array refs for options and hash refs for
parameters where needed, and accept array refs for manager_args for
consistency:
...
manager_args => [sort_by => 'CHANGES.DATUM DESC'],
# equivalent to
manager_args => {sort_by => 'CHANGES.DATUM DESC'},
...
Ted
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object