mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #5551 from AntonyThorpe/patch-1
Updated 01_Data_Model_and_ORM.md for byID
This commit is contained in:
commit
5df9cb05f3
@ -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…
x
Reference in New Issue
Block a user