yii\db\QueryInterface::one PHP Метод

one() публичный Метод

Executes the query and returns a single row of result.
public one ( Connection $db = null ) : array | boolean
$db Connection the database connection used to execute the query. If this parameter is not given, the `db` application component will be used.
Результат array | boolean the first row (in terms of an array) of the query result. False is returned if the query results in nothing.
    public function one($db = null);