Skip to content

Instantly share code, notes, and snippets.

@kitt-vl
Created October 15, 2018 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitt-vl/81314f5a23166a49f5c0a04a9d1aacd6 to your computer and use it in GitHub Desktop.
Save kitt-vl/81314f5a23166a49f5c0a04a9d1aacd6 to your computer and use it in GitHub Desktop.
my @cart_items = $self->table->find(
where=>[ $self->_c->session_condition ],
with => [
{
name => 'Catalog.Image',
columns => [ 'url']
},
{
name => 'Catalog',
columns => [ 'name', 'url_uniq']
},
{
name => 'Catalog.Parent',
columns => ['url_uniq']
},
],
columns => [qw/unit price quantity summa catalog_id/],
rows_as_hashes => 1
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment