Cakephp 3 - reusable code for Table Entities
<p>I have some code, that I need to apply for multiple Tables' Entities</p>

<p>similar to the example here
<a href="http://book.cakephp.org/3.0/en/orm/entities.html#accessors-mutators" rel="nofollow">http://book.cakephp.org/3.0/en/orm/entities.html#accessors-mutators</a></p>

<pre><code> protected function _setTitle($title)
 {
     // code to make re-usable 

     return $title;
 }
</code></pre>

<p>Where can I move my code, so I can access it from multiple Entities. I tried a function inside Behavior, but it did not work.</p>

<p>Thanks</p>