cakephp/cakephp — pull request #844 by dogmatic69 (2012-09-14 14:03:57+00:00)
Title: Adding a check to the object before use

For some reason that I have not been able to figure out yet the object is
returned as null. This is causing some exceptions when trying to access
properties that dont exist.

FatalErrorException: "Call to a member function getAssociated() on a non-object"

It has something to do with (I think) Form->create(null) with $uses = ['NonConventionModel'] in the controller

Test still pass with the added check.