Perl Monk, Perl Meditation | |
PerlMonks |
Re: Rose::DB and HTML Templateby moritz (Cardinal) |
on Mar 01, 2011 at 09:56 UTC ( [id://890710]=note: print w/replies, xml ) | Need Help?? |
Looking at the documentation of Rose::DB::Object::Manager it seems that the get_$thing methods already return array references.
But since HTML::Template can't call methods, you have to turn each object into a hash reference first. So for example:
(I'm not really familiar with RDOM, so take this with a grain of salt). Of course it kinda defeats the purpose of an object-relation mapper to first construct objects, and then turn them into dumb hashes...
In Section
Seekers of Perl Wisdom
|
|