db\BaseActiveRecord findByCondition()

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

doc_Yii
2016-10-30 16:56:44
Comments
Leave a Comment

Please login to continue.