Skip to content

Instantly share code, notes, and snippets.

@jonsherrard
Created November 27, 2012 13:14
Show Gist options
  • Save jonsherrard/4154175 to your computer and use it in GitHub Desktop.
Save jonsherrard/4154175 to your computer and use it in GitHub Desktop.
idorm stuff
<?php
public function getAllPrizes() {
return ORM::forTable("prizes")->findMany();
}
var_dump(
$db->getAllPrizes()[0]->as_array()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment