mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 13:58:24 +08:00
Finished refactoring find() .
This commit is contained in:
@@ -423,7 +423,7 @@ abstract class ActiveRecord extends BaseActiveRecord
|
||||
* For example, to update an article record:
|
||||
*
|
||||
* ~~~
|
||||
* $article = Article::find(['id' => $id]);
|
||||
* $article = Article::findOne($id);
|
||||
* $article->genre_id = $genreId;
|
||||
* $article->group_id = $groupId;
|
||||
* $article->update();
|
||||
|
||||
Reference in New Issue
Block a user