[Dbix-class] trouble with relationships
Devin Austin
devin.austin at gmail.com
Fri Nov 3 04:19:20 GMT 2006
I'm using this code to attempt to retrieve a related table's info:
my @all_user_notes =3D $user_notes->search_related('notes',
{
username =3D> $session->param('username')
}
);
my @user_notes =3D map {
{
'noteid' =3D> $_->noteid,
'number' =3D> $_->number,
'date' =3D> $_->date,
'private' =3D> $_->private,
}
} @all_user_notes;
And I'm getting this when I run Data::Dumper on @user_notes:
$VAR1 =3D {
'number' =3D> undef,
'date' =3D> undef,
'private' =3D> undef,
'noteid' =3D> undef
};
Why would all my fields be coming up empty?
-- =
timorperfectus.com - web design to frightening perfection.
One last song
Given to an Angel's Son
As soon as you were gone
As soon as you were gone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jules.scsys.co.uk/pipermail/dbix-class/attachments/20061102/0ec=
aabbc/attachment.htm
More information about the Dbix-class
mailing list