I an looking to use a JOIN to select data from a table and a view in CakePHP like so :
$this->Annonces->find(\'all\') ->where($arrFiltres)
You also can create virtual field in Entity:
namespace App\Model\Entity; use Cake\ORM\Entity; class User extends Entity { protected function _getFullName() { return $this->_properties['first_name'] . ' ' . $this->_properties['last_name']; } }
echo $entity->full_name;