db\ActiveQuery all()

all() public method

Executes query and returns all results as an array.

public array|yii\db\ActiveRecord[] all ( $db = null )
$db yii\db\Connection

The DB connection used to create the DB command. If null, the DB connection returned by $modelClass will be used.

return array|yii\db\ActiveRecord[]

The query results. If the query results in nothing, an empty array will be returned.

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

Please login to continue.