title: CakePHP3: modify entity on all reads
body: <p>I have hard time figuring out the best approach to my problem. I have two fields in my <code>files</code> model, e.g. <code>file_path</code> and <code>file_name</code>. Whenever a <code>file_name</code> field is read (no matter if it's called via <code>get()</code>, <code>find()</code>, whether it's JSON or a regular view) I would like it to be modified and return a concatanation of both fields (<code>$file_name = $file_path .'/'.$file_name</code>).</p>
  
  <p>I would like to do this in one place to make the code DRY. I figured one way to do this would be an accessor method of an entity as specified in the documentation but accessors only work when the entity is accessed via the object notation and they are not working with <code>find()</code>).</p>
  
  <p>Is there any way of doing this transparently in one place (preferably a model)? I was looking into model events, but couldn't figure out which event would be useful in my situation (it looks like I'd need something like afterRead...)</p>
  
  <p>This is what I have tried but it's not working with finders:</p>
  
  <pre><code>namespace App\Model\Entity;
  use Cake\ORM\Entity;
  
  class File extends Entity
  {
      protected function _getFileName($f)
      {
          return $this-&gt;file_path.''.$f;
      }
  }
  </code></pre>