Compatibility adapter for model 2.x to becomes compatible with 3.x ORM

Is there somewhere an adapter for cakephp 3.x model to handle 2.x syntax? Like, internally, it just convert syntax like this:

array(
    'conditions' => array('Model.field' => $thisValue),
    'fields' => array('Model.field1', 'DISTINCT Model.field2'),
    'order' => array('Model.created', 'Model.field3 DESC'),
    'group' => array('Model.field'), 
    'limit' => n
)

into:

$query->select('Model.field1')
->distinct('Model.field2')
->order->(['Model.created', 'Model.field3' => 'DESC'])
->group('Model.field')
->where('Model.field' => $thisValue)

and return executed query ->toArray(). So the model of 2.x, becomes compatible with 3.x.

Many thanks to any advises.

In case someone else facing with the same problem: shim plugin can solve most of issues with compatibility 2.x and 3.x version.
Thanks @neothermic :slight_smile:

It works [out of the box.] (http://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#using-finders-to-load-data)