On 1/17/07, Neal Clark <[EMAIL PROTECTED]> wrote:
> given then accounts INTEGER[] way of doing this, will rose db do this:
>
> @accounts = $stuff->accounts;
>
> and convert the ARRAY[id,id,id] into a perl array?

Yes, so long as you set up the column metadata correctly, either by
auto-initializing it (using the Loader or otherwise) or by explicitly
setting the column type => 'array', which, according to:

http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/Metadata.pm#column_type_classes

maps to this column class:

http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/Metadata/Column/Array.pm

through which you can find links to the method-maker docs for the
get_set method created to access the column.

-John

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to