This method is internally used by the find methods.
Null is returned if the input data is false.
public populateRecord ( array $attributes, boolean $callAfterFind = true, boolean $partial = false ) : EMongoDocument | null | ||
$attributes | array | - attribute values (column name=>column value) |
$callAfterFind | boolean | whether to call {@link afterFind} after the record is populated. |
$partial | boolean | |
Résultat | EMongoDocument | null | - the newly created active record. The class of the object is the same as the model class. |