3.0 Fix an issue where plugin associations would be mishandled.

When joining plugin models together, I ran into an issue when using `hasMany('Plugin.Model')`. The SQL conditions would be incorrectly generated as `Plugin.Model.foo_id` instead of `Model.foo_id`.

This change fixes the failing build for cakephp/debug_kit#192