mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-08 08:56:23 +08:00
Merge pull request #7646 from softark/docs-guide-db-ar-fix
docs/guide/db-active-record.md - sample code fixed [ci skip]
This commit is contained in:
@ -193,7 +193,7 @@ $customer = Customer::findOne(123);
|
||||
|
||||
// returns customers whose ID is 100, 101, 123 or 124
|
||||
// SELECT * FROM `customer` WHERE `id` IN (100, 101, 123, 124)
|
||||
$customers = Customer::findAll([1, 2, 3]);
|
||||
$customers = Customer::findAll([100, 101, 123, 124]);
|
||||
|
||||
// returns an active customer whose ID is 123
|
||||
// SELECT * FROM `customer` WHERE `id` = 123 AND `status` = 1
|
||||
|
||||
Reference in New Issue
Block a user