Skip to content

Instantly share code, notes, and snippets.

@frazr
Created April 20, 2016 08:40
Show Gist options
  • Save frazr/c87c7db4592cdd2dcce77706f31d4109 to your computer and use it in GitHub Desktop.
Save frazr/c87c7db4592cdd2dcce77706f31d4109 to your computer and use it in GitHub Desktop.
$webShop = $this->WebShops->get($id, [
'contain' => [
'ArticleGroups.Images' => function($q) use ($limit) {
return $q->limit($limit);
}
]
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment