cakephp/cakephp — pull request #4578 by robertpustulka (2014-09-11 12:05:21+00:00)
Title: 3.0 ORM: Automagic foreignKey resolution draft

Following #4577

Here is a draft of automagic `foreignKey` resolution.
This is just a feature proposition ;). Maybe it will prove useful in the future.

I've also included a fix for some table tests where belongsToMany associations pointed to non-existing `tag` tables. This caused table description to fail while getting `primaryKey` from schema.