{"action":"created","issue":{"url":"https://api.github.com/repos/koseven/koseven/issues/183","repository_url":"https://api.github.com/repos/koseven/koseven","labels_url":"https://api.github.com/repos/koseven/koseven/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/koseven/koseven/issues/183/comments","events_url":"https://api.github.com/repos/koseven/koseven/issues/183/events","html_url":"https://github.com/koseven/koseven/issues/183","id":280760218,"number":183,"title":"Some model aren't found","user":{"login":"Nausx","id":842926,"avatar_url":"https://avatars2.githubusercontent.com/u/842926?v=4","gravatar_id":"","url":"https://api.github.com/users/Nausx","html_url":"https://github.com/Nausx","followers_url":"https://api.github.com/users/Nausx/followers","following_url":"https://api.github.com/users/Nausx/following{/other_user}","gists_url":"https://api.github.com/users/Nausx/gists{/gist_id}","starred_url":"https://api.github.com/users/Nausx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nausx/subscriptions","organizations_url":"https://api.github.com/users/Nausx/orgs","repos_url":"https://api.github.com/users/Nausx/repos","events_url":"https://api.github.com/users/Nausx/events{/privacy}","received_events_url":"https://api.github.com/users/Nausx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-09T22:15:43Z","updated_at":"2017-12-09T23:12:59Z","closed_at":null,"author_association":"NONE","body":"As I said I'm having trouble with some model and when I try `ORM::factory('ModelName')` I get an error saying the `Model_ModenName not found`. Though it works find with other models but i'm not completly sure it's a bug, maybe I did something wrong and i'll put all information you ask here.\r\n\r\nHere is the model and the orm configuration, \r\n\r\n```php\r\nclass Model_Institution extends ORM{\r\n    protected $_table_name = 'institutions';\r\n\r\n    protected $_has_many   = [\r\n        'faculties'    => ['model' => 'Faculty',    'foreign_key' => 'institution_id'],\r\n        'departements' => ['model' => 'Department', 'foreign_key' => 'institution_id'],\r\n    ];\r\n}\r\n```\r\n\r\n```php\r\nKohana::modules(array(\r\n\t// 'encrypt'    => MODPATH.'encrypt',    // Encryption supprt\r\n\t//'auth'       => MODPATH.'auth',       // Basic authentication\r\n\t// 'cache'      => MODPATH.'cache',      // Caching with multiple backends\r\n\t// 'codebench'  => MODPATH.'codebench',  // Benchmarking tool\r\n\t 'database'   => MODPATH.'database',   // Database access\r\n\t// 'image'      => MODPATH.'image',      // Image manipulation\r\n\t// 'minion'     => MODPATH.'minion',     // CLI Tasks\r\n\t 'orm'        => MODPATH.'orm',        // Object Relationship Mapping\r\n\t// 'pagination' => MODPATH.'pagination', // Pagination\r\n\t// 'unittest'   => MODPATH.'unittest',   // Unit testing\r\n\t// 'userguide'  => MODPATH.'userguide',  // User guide and API documentation\r\n\t));\r\n```\r\n\r\nThe error message from the log\r\n```\r\n2017-12-09 15:39:23 --- EMERGENCY: Error [ 0 ]: Class 'Model_Institution' not found ~ MODPATH/orm/classes/Kohana/ORM.php [ 46 ] in /home/nausx/workspace/porto/application/classes/Controller/BaseController.php:89\r\n2017-12-09 15:39:23 --- DEBUG: #0 /home/nausx/workspace/porto/application/classes/Controller/BaseController.php(89): Kohana_ORM::factory('Model_Instituti...')\r\n#1 /home/nausx/workspace/porto/application/classes/Controller/BaseController.php(132): Controller_BaseController->addManager('Martin', 'Lachance', 'email1@email.ca')\r\n#2 /home/nausx/workspace/porto/application/classes/Controller/BaseController.php(16): Controller_BaseController->fixtures()\r\n#3 /home/nausx/workspace/porto/system/classes/Kohana/Controller.php(69): Controller_BaseController->before()\r\n#4 [internal function]: Kohana_Controller->execute()\r\n#5 /home/nausx/workspace/porto/system/classes/Kohana/Request/Client/Internal.php(97): ReflectionMethod->invoke(Object(Controller_Profile))\r\n#6 /home/nausx/workspace/porto/system/classes/Kohana/Request/Client.php(114): Kohana_Request_Client_Internal->execute_request(Object(Request), Object(Response))\r\n#7 /home/nausx/workspace/porto/system/classes/Kohana/Request.php(993): Kohana_Request_Client->execute(Object(Request))\r\n#8 /home/nausx/workspace/porto/public/index.php(118): Kohana_Request->execute()\r\n#9 {main} in /home/nausx/workspace/porto/application/classes/Controller/BaseController.php:89\r\n```\r\n\r\nThx for your help."},"comment":{"url":"https://api.github.com/repos/koseven/koseven/issues/comments/350512321","html_url":"https://github.com/koseven/koseven/issues/183#issuecomment-350512321","issue_url":"https://api.github.com/repos/koseven/koseven/issues/183","id":350512321,"user":{"login":"jstrobel","id":1428396,"avatar_url":"https://avatars3.githubusercontent.com/u/1428396?v=4","gravatar_id":"","url":"https://api.github.com/users/jstrobel","html_url":"https://github.com/jstrobel","followers_url":"https://api.github.com/users/jstrobel/followers","following_url":"https://api.github.com/users/jstrobel/following{/other_user}","gists_url":"https://api.github.com/users/jstrobel/gists{/gist_id}","starred_url":"https://api.github.com/users/jstrobel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstrobel/subscriptions","organizations_url":"https://api.github.com/users/jstrobel/orgs","repos_url":"https://api.github.com/users/jstrobel/repos","events_url":"https://api.github.com/users/jstrobel/events{/privacy}","received_events_url":"https://api.github.com/users/jstrobel/received_events","type":"User","site_admin":false},"created_at":"2017-12-09T23:12:59Z","updated_at":"2017-12-09T23:12:59Z","author_association":"COLLABORATOR","body":"Or if you have a lot classes add this to your bootstrap.php\n\nspl_autoload_register(array('Kohana', 'auto_load_lowercase'));\n"}}
{"actor":{"display_login":"jstrobel"}}