From f12258427afa6a0a20ea21278d9a02d9d5675567 Mon Sep 17 00:00:00 2001 From: Antony Thorpe Date: Wed, 18 May 2016 08:30:29 +1200 Subject: [PATCH] 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. --- docs/en/02_Developer_Guides/00_Model/01_Data_Model_and_ORM.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/02_Developer_Guides/00_Model/01_Data_Model_and_ORM.md b/docs/en/02_Developer_Guides/00_Model/01_Data_Model_and_ORM.md index 105f19879..21acfce88 100644 --- a/docs/en/02_Developer_Guides/00_Model/01_Data_Model_and_ORM.md +++ b/docs/en/02_Developer_Guides/00_Model/01_Data_Model_and_ORM.md @@ -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;