upgrading to squel 2.x and adding toParam fix