We don't bite newbies here... much | |
PerlMonks |
Re: Dancer2, DBIx::Class and HTML::FormFu: showing database record in html-form to editby 1nickt (Canon) |
on Oct 02, 2018 at 00:11 UTC ( [id://1223376]=note: print w/replies, xml ) | Need Help?? |
Hi, search in scalar context returns the resultset, not a record. Try:
(Also note the DBIx doc recommends use of prefetch rather than join when your join includes all the columns from the joined table.)
https://metacpan.org/pod/DBIx::Class::ResultSet#search Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|