Updated 01_Data_Model_and_ORM.md for byID

According to the framework's API documentation 'byID' is a method of DataList not 'byId'.  Both are used in the documentation.
This commit is contained in:
Antony Thorpe 2016-05-18 08:30:29 +12:00
parent 2312d82123
commit f12258427a
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ shortcuts and methods for fetching, sorting and filtering data from our database
$players = Player::get();
// 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.
echo $player->ID;