Skip to content

Instantly share code, notes, and snippets.

@rjattrill
Created February 8, 2013 06:10
Show Gist options
  • Save rjattrill/4736988 to your computer and use it in GitHub Desktop.
Save rjattrill/4736988 to your computer and use it in GitHub Desktop.
Alias joins in select using DBIx::DataModel
$schema ->join(qw/Department|dpt activities|act employee|emp/)
->select( -columns => qw/dpt.name act.d_begin emp.lastname/,
-where => {"dpt.dpt_name" => {-like => "A%"}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment