mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
2312d82123
commit
f12258427a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user