mongodb\ActiveFixture getData()

getData() protected method

Returns the fixture data.

This method is called by \yii\mongodb\loadData() to get the needed fixture data.

The default implementation will try to return the fixture data by including the external file specified by $dataFile. The file should return an array of data rows (column name => column value), each corresponding to a row in the collection.

If the data file does not exist, an empty array will be returned.

protected array getData ( )
return array

The data rows to be inserted into the collection.

doc_Yii
2016-10-30 17:07:20
Comments
Leave a Comment

Please login to continue.