Merge pull request #5551 from AntonyThorpe/patch-1

Updated 01_Data_Model_and_ORM.md for byID
This commit is contained in:
Damian Mooyman 2016-05-19 14:08:45 +12:00
commit 5df9cb05f3

View File

@ -150,7 +150,7 @@ shortcuts and methods for fetching, sorting and filtering data from our database
$players = Player::get(); $players = Player::get();
// returns a `DataList` containing all the `Player` objects. // returns a `DataList` containing all the `Player` objects.
$player = Player::get()->byId(2); $player = Player::get()->byID(2);
// returns a single `Player` object instance that has the ID of 2. // returns a single `Player` object instance that has the ID of 2.
echo $player->ID; echo $player->ID;