yii\db\ActiveQueryTrait::asArray PHP Method

asArray() public method

Sets the [[asArray]] property.
public asArray ( boolean $value = true )
$value boolean whether to return the query results in terms of arrays instead of Active Records.
    public function asArray($value = true)
    {
        $this->asArray = $value;
        return $this;
    }