{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfCake/crud/issues/292","labels_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/292/comments","events_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/292/events","html_url":"https://github.com/FriendsOfCake/crud/issues/292","id":92497987,"number":292,"title":"Nested related models","user":{"login":"Laykou","id":2313005,"avatar_url":"https://avatars.githubusercontent.com/u/2313005?v=3","gravatar_id":"","url":"https://api.github.com/users/Laykou","html_url":"https://github.com/Laykou","followers_url":"https://api.github.com/users/Laykou/followers","following_url":"https://api.github.com/users/Laykou/following{/other_user}","gists_url":"https://api.github.com/users/Laykou/gists{/gist_id}","starred_url":"https://api.github.com/users/Laykou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laykou/subscriptions","organizations_url":"https://api.github.com/users/Laykou/orgs","repos_url":"https://api.github.com/users/Laykou/repos","events_url":"https://api.github.com/users/Laykou/events{/privacy}","received_events_url":"https://api.github.com/users/Laykou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T22:23:35Z","updated_at":"2015-07-02T03:07:47Z","closed_at":null,"body":"Hi,\r\n\r\nThis was previously working and now is not:\r\n\r\n```PHP\r\n$contain = [\r\n    'Comments' => ['Users'],\r\n    'Category.Topic'\r\n];\r\n$this->Crud->listener('relatedModels')->relatedModels($contain, 'add');\r\n```\r\n\r\nIt fails on https://github.com/FriendsOfCake/crud/blob/master/src/Listener/RelatedModelsListener.php#L141 as the `$associationClass` equals to `NULL`.\r\n\r\nThank you for the support."},"comment":{"url":"https://api.github.com/repos/FriendsOfCake/crud/issues/comments/117889236","html_url":"https://github.com/FriendsOfCake/crud/issues/292#issuecomment-117889236","issue_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/292","id":117889236,"user":{"login":"ADmad","id":142658,"avatar_url":"https://avatars.githubusercontent.com/u/142658?v=3","gravatar_id":"","url":"https://api.github.com/users/ADmad","html_url":"https://github.com/ADmad","followers_url":"https://api.github.com/users/ADmad/followers","following_url":"https://api.github.com/users/ADmad/following{/other_user}","gists_url":"https://api.github.com/users/ADmad/gists{/gist_id}","starred_url":"https://api.github.com/users/ADmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ADmad/subscriptions","organizations_url":"https://api.github.com/users/ADmad/orgs","repos_url":"https://api.github.com/users/ADmad/repos","events_url":"https://api.github.com/users/ADmad/events{/privacy}","received_events_url":"https://api.github.com/users/ADmad/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T03:07:47Z","updated_at":"2015-07-02T03:07:47Z","body":"It only takes a flat array so pass it that. "}}