src/ActiveRecord.php
public function query($defaultScenario, $data = [], array $options = [])
    {
        $action = $this->getScenarioAction($defaultScenario);

        return static::perform($action, $data, $options);
    }
public function query($defaultScenario, $data = [], array $options = [])
    {
        $action = $this->getScenarioAction($defaultScenario);

        return static::perform($action, $data, $options);
    }
public function query ( $ defaultScenario , $ data = [ ] , array $ options = [ ] ) { $ action = $ this -> getScenarioAction ( $ defaultScenario ) ; return static :: perform ( $ action , $ data , $ options ) ; }
Perform query.
@param string $defaultScenario
@param array $data data
@param array $options
@return array result
Perform query .