I would like to see something like that in Yii2, but I don’t if is feasible in Yii, since this parser in Phalcon is written in C.

I’d rather see a doctrine component or the possibility to switch the ar/orm/dbal backend to doctrine and implement a DQL-component as it is more common(if you have the need to abstract to a general sql-inspired syntax).