populateRecord() public static method
Populates an active record object using a row of data from the database/storage.
This is an internal method meant to be called to create active record objects after fetching data from the database. It is mainly used by yii\db\ActiveQuery to populate the query results into active records.
When calling this method manually you should call afterFind() on the created record to trigger the afterFind Event.
public static void populateRecord ( $record, $row ) | ||
---|---|---|
$record | yii\db\BaseActiveRecord |
The record to be populated. In most cases this will be an instance created by instantiate() beforehand. |
$row | array |
Attribute values (name => value) |
Please login to continue.