I think I need to do a prefetch as illustrated here
I tried:
my $results = $s->results->find($id, { prefetch => ['metas'] } ); my $post_id = $results->_menu_item_object_id;
I just got an error, though: Can't locate object method "_menu_item_object_id" via package "WordPress::DBIC::Schema::Result::WpPost"
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
In reply to Re: How to do a DBIx subquery?
by nysus
in thread How to do a DBIx subquery?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |