one() public abstract method
Executes query and returns a single row of result.
| public abstract yii\db\ActiveRecordInterface|array|null one ( $db = null ) | ||
|---|---|---|
| $db | yii\db\Connection | 
 The DB connection used to create the DB command. If   |  
| return | yii\db\ActiveRecordInterface|array|null | 
 A single row of query result. Depending on the setting of asArray(), the query result may be either an array or an ActiveRecord object.   |  
Please login to continue.