Created
November 27, 2012 13:14
-
-
Save jonsherrard/4154175 to your computer and use it in GitHub Desktop.
idorm stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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