{"action":"created","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/605","repository_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/605/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/605/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/605/events","html_url":"https://github.com/bcit-ci/CodeIgniter4/issues/605","id":242662124,"number":605,"title":"Problem with Sth3Model loading from Sth2Model when Sth3Model is in subdiretory (Subdir1)","user":{"login":"nowackipawel","id":8414802,"avatar_url":"https://avatars1.githubusercontent.com/u/8414802?v=3","gravatar_id":"","url":"https://api.github.com/users/nowackipawel","html_url":"https://github.com/nowackipawel","followers_url":"https://api.github.com/users/nowackipawel/followers","following_url":"https://api.github.com/users/nowackipawel/following{/other_user}","gists_url":"https://api.github.com/users/nowackipawel/gists{/gist_id}","starred_url":"https://api.github.com/users/nowackipawel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nowackipawel/subscriptions","organizations_url":"https://api.github.com/users/nowackipawel/orgs","repos_url":"https://api.github.com/users/nowackipawel/repos","events_url":"https://api.github.com/users/nowackipawel/events{/privacy}","received_events_url":"https://api.github.com/users/nowackipawel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-13T10:54:06Z","updated_at":"2017-07-13T12:37:30Z","closed_at":null,"body":"Inside Models directory I've got:\r\n\r\n- Sth1Model\r\n- Sth2Model\r\n- Subdir1\r\n    - Sth3Model\r\n\r\ninside one method of Sth2Model I'm creating Sth3Model\r\n`$st3 = new \\Subdir1\\Sth3Model();`\r\n\r\nafter update my project to the newest version (commit: a5b6d938a37b2d75bfda5143a945b1ed85bebbaa) one  problem appears:\r\n\r\n`Error Class 'Subdir1\\Sth3Model' not found`\r\n\r\nin that line from Sth1Model:\r\n\r\n`$sthSth = new \\Subdir1\\Sth3Model();`\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/comments/315065026","html_url":"https://github.com/bcit-ci/CodeIgniter4/issues/605#issuecomment-315065026","issue_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/605","id":315065026,"user":{"login":"lonnieezell","id":51931,"avatar_url":"https://avatars1.githubusercontent.com/u/51931?v=3","gravatar_id":"","url":"https://api.github.com/users/lonnieezell","html_url":"https://github.com/lonnieezell","followers_url":"https://api.github.com/users/lonnieezell/followers","following_url":"https://api.github.com/users/lonnieezell/following{/other_user}","gists_url":"https://api.github.com/users/lonnieezell/gists{/gist_id}","starred_url":"https://api.github.com/users/lonnieezell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonnieezell/subscriptions","organizations_url":"https://api.github.com/users/lonnieezell/orgs","repos_url":"https://api.github.com/users/lonnieezell/repos","events_url":"https://api.github.com/users/lonnieezell/events{/privacy}","received_events_url":"https://api.github.com/users/lonnieezell/received_events","type":"User","site_admin":false},"created_at":"2017-07-13T12:37:30Z","updated_at":"2017-07-13T12:37:30Z","body":"Hmm. I think there was only one change in that commit that might have affected this, but it was fixing an existing bug in the FileLocater algorithm, I believe. \r\n\r\nHow are your model's namespaced, and your namespace defined within Config/Autoload? Or are they not namespaced at all? \r\n\r\nIt looks to me like the call should be: `$st3 = new \\App\\Models\\Subdir1\\Sth3Model`."}}
{"actor":{"display_login":"lonnieezell"}}