Skip to content

Instantly share code, notes, and snippets.

@michaeltwofish
Created February 18, 2011 06:07
Show Gist options
  • Save michaeltwofish/833323 to your computer and use it in GitHub Desktop.
Save michaeltwofish/833323 to your computer and use it in GitHub Desktop.
$clusters_list = Cluster::all(array('conditions' =>array(
'id' => array('!=' => implode(',', $form_clusters->map(function($cluster) {
return $cluster->id;
}, array('collect' => false)))),
)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment