findByCondition() protected static method
Finds ActiveRecord instance(s) by the given condition.
This method is internally called by findOne() and findAll().
| protected static yii\db\ActiveQueryInterface findByCondition ( $condition ) | ||
|---|---|---|
| $condition | mixed |
Please refer to findOne() for the explanation of this parameter |
| return | yii\db\ActiveQueryInterface |
The newly created ActiveQuery instance. |
| throws | yii\base\InvalidConfigException |
if there is no primary key defined |
Please login to continue.