Creates new records in the database.
public create ( Model $Model, array $fields = null, array $values = null ) : boolean | ||
$Model | Model | Model object that the record is for. |
$fields | array | An array of field names to insert. If null, $Model->data will be used to generate field names. |
$values | array | An array of values with keys matching the fields. If null, $Model->data will be used to generate values. |
return | boolean | Success |