InterviewSolution
Saved Bookmarks
| 1. |
How to use find() and findAll () in YII2? |
|
Answer» findAll(): It gives US a list of active RECORD models that MATCH the SPECIFIED conditions. Admin::findAll(['type' => 'client', 'status' => 1]); find(): It returns a single record using the primary key. Admin::find(['id' => 1]); |
|