Hi All I'm trying to figure out how to perform subqueries with DBIx::Class. For example, I want to find all the roles that user 2 hasn't been assigned. The standard SQL is
select role_id, display_name from app_role a where not exists (select 1 from user_role u where u.user_id = 2 and u.role_id = a.role_id); What would the DBIx::Class equivalent be? Regards Dan Horne _______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/