アイデア?誰もこれに前に取り組んだ?事前に複数の結合とサブクエリを使用してこのSQLクエリをPerl DBIx :: Classに変換するにはどうすればよいですか?
select c.parent_id, c.category_id, c.name, count(*) from categories c join product_categories pc on c.category_id = pc.category_id join authorizations a on pc.product_id = a.product_id join set_authorizations sa on a.authorization_id = sa.authorization_id where a.active = 1 and sa.set_id = 2 and c.parent_id in ( select category_id from categories where parent_id is null ) group by c.parent_id, c.category_id, c.name;
おかげで...
テーブルと外部キーのDBIx :: Class定義は既にありますか? – dgw