Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
class my_model extends \core\orm\entiyentity\encrypted_model {
  // Remove the attribute from the model whitelist (if it exists)
  protected $model_accessor_whitelist = [
    'some_field',
  ];
  
  // Add the attribute to the encrypted whitelist
  protected $encrypted_attribute_list = [
    'my_token',
  ];
  
  // Add the attribute to the entity whitelist
  protected $entity_attribute_whitelist = [
    'my_token',
  ];
}

...