{"action":"created","issue":{"url":"https://api.github.com/repos/dektrium/yii2-user/issues/212","labels_url":"https://api.github.com/repos/dektrium/yii2-user/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/dektrium/yii2-user/issues/212/comments","events_url":"https://api.github.com/repos/dektrium/yii2-user/issues/212/events","html_url":"https://github.com/dektrium/yii2-user/issues/212","id":53216404,"number":212,"title":"Overriding models","user":{"login":"rtwent","id":9133661,"avatar_url":"https://avatars.githubusercontent.com/u/9133661?v=3","gravatar_id":"","url":"https://api.github.com/users/rtwent","html_url":"https://github.com/rtwent","followers_url":"https://api.github.com/users/rtwent/followers","following_url":"https://api.github.com/users/rtwent/following{/other_user}","gists_url":"https://api.github.com/users/rtwent/gists{/gist_id}","starred_url":"https://api.github.com/users/rtwent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtwent/subscriptions","organizations_url":"https://api.github.com/users/rtwent/orgs","repos_url":"https://api.github.com/users/rtwent/repos","events_url":"https://api.github.com/users/rtwent/events{/privacy}","received_events_url":"https://api.github.com/users/rtwent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-01T09:31:56Z","updated_at":"2015-01-01T11:38:40Z","closed_at":null,"body":"User config:\r\n'modules' => [\r\n        'user' => [\r\n            'class' => 'dektrium\\user\\Module',\r\n            'controllerMap' => [\r\n                'settings' => 'app\\controllers\\user\\SettingsController'\r\n            ],\r\n            'modelMap' => [\r\n                'Profile' => 'app\\models\\overriding\\user\\Profile',\r\n            ],\r\n        ],\r\n    ],\r\n\r\nIn overrided controller I try to find user profile, as You do it in Your base controller:\r\n$model = $this->finder->findProfileById(\\Yii::$app->user->identity->getId());\r\nI expect to get instance of \"app\\models\\overriding\\user\\Profile\" but get instance of dektrium\\user\\models\\Profile\r\nYour last update 0.9.0 was to cruel ;) Could You left some features for some time as deprecated. \"ModelManager component has been dropped\" this made me headache. Regards.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dektrium/yii2-user/issues/comments/68484866","html_url":"https://github.com/dektrium/yii2-user/issues/212#issuecomment-68484866","issue_url":"https://api.github.com/repos/dektrium/yii2-user/issues/212","id":68484866,"user":{"login":"trbsi","id":3958715,"avatar_url":"https://avatars.githubusercontent.com/u/3958715?v=3","gravatar_id":"","url":"https://api.github.com/users/trbsi","html_url":"https://github.com/trbsi","followers_url":"https://api.github.com/users/trbsi/followers","following_url":"https://api.github.com/users/trbsi/following{/other_user}","gists_url":"https://api.github.com/users/trbsi/gists{/gist_id}","starred_url":"https://api.github.com/users/trbsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trbsi/subscriptions","organizations_url":"https://api.github.com/users/trbsi/orgs","repos_url":"https://api.github.com/users/trbsi/repos","events_url":"https://api.github.com/users/trbsi/events{/privacy}","received_events_url":"https://api.github.com/users/trbsi/received_events","type":"User","site_admin":false},"created_at":"2015-01-01T11:38:40Z","updated_at":"2015-01-01T11:38:40Z","body":"The same here, I'm not sure how to access \"finder->findProfileById(\\Yii::$app->user->identity->getId());\" anywhere from my app"}}