How to include virtual fields in find with CakePHP 3?
<p>I am trying to add an isOnline field for users which does not exists in the database. Is there a way In can return isOnline as a virtual field? I have tried adding this to the User entity:</p>

<pre><code>protected function _getIsOnline() {
    return true;
}
</code></pre>

<p>But when I do a <code>$user-&gt;find('all', [])</code> the field is not included. Any ideas on how to accomplish this?</p>