Fix fatal error caused by renamed method.

Refs #4486
Only generate associations when _id occurs at the end of a field.

If `_id` is mid column it should not result in a generated association.

Fixes #4503
Merge pull request #4534 from cakephp/console-fixes

A few console fixes