[Dbix-class] Return column values not objects?
seasprocket at gmail.com
seasprocket at gmail.com
Tue Oct 5 02:58:04 GMT 2010
The docs appear to say that DBIx can return column values (rather than
objects), but I can't get it to work. Have tried "select" attribute and also
"columns" attribute. In both cases, it inflates to objects. I have a simple
(left) join of two tables and want to retrieve all the id's of the "foo"
table.
$rs =3D $self->schema->resultset('My:Bar');
my @foo_ids =3D $rs->search(
{
bar =3D> $bar->id,
},
{
join =3D> 'foo',
select =3D> [qw/foo.id/],
}
);
Sorry for this newbie question, but just can't get it to work.
Thanks!
-- =
Bikewise: http://www.bikewise.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20101004/3ef=
ac88a/attachment.htm
More information about the DBIx-Class
mailing list