<commit_before>DMZ Datamapper Extension MassAssign
==============

DMZ Datamapper Extension for mass assignment

 Assign an associative array to the field associated with some protection rules
 
 In the model must exist an array of rules for the fillable field and an array for guarded field to not override
 
Example:
 ```
 class User extends DataMapper{
      //Field that can be filled
      public $guarded = ['name','email'];
      //Field that are not writable
      public $guarded = ['id','group'];
  }
  ```
  Then use it on an object:
  
  `$user->assign($input)->save();`
  
  


Default Installation
==============

Copy the class massassign in your extensions of datamapper folder generally in `applicazion/datamapper/`. Then load the extension properly following the [datamapper guide](http://datamapper.wanwizard.eu/pages/extensions.html).<commit_msg>Fix fillable field<commit_after>DMZ Datamapper Extension MassAssign
==============

DMZ Datamapper Extension for mass assignment

 Assign an associative array to the field associated with some protection rules
 
 In the model must exist an array of rules for the fillable field and an array for guarded field to not override
 
Example:
 ```
 class User extends DataMapper{
      //Field that can be filled
      public $fillable = ['name','email'];
      //Field that are not writable
      public $guarded = ['id','group'];
  }
  ```
  Then use it on an object:
  
  `$user->assign($input)->save();`
  
  


Default Installation
==============

Copy the class massassign in your extensions of datamapper folder generally in `applicazion/datamapper/`. Then load the extension properly following the [datamapper guide](http://datamapper.wanwizard.eu/pages/extensions.html).
{'fraction_non_alphanumeric': 0.11047180667433831, 'fraction_numerical': 0.0, 'mean_word_length': 3.982808022922636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3560055', 'n_tokens_mistral': 476, 'n_tokens_neox': 445, 'n_words': 193}