cakephp/cakephp — pull request #955 by dereuromark (2012-11-13 10:20:43+00:00)
Title: asserting that tree behavior generates valid sql in recover

`$Model->alias . '.' . $Model->primaryKey` should better be used to avoid invalid sql statements

see http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/3366-treebehavior-recover-invalid-sql