-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controller id is null in model #15725
Comments
@fmartiner would you please check 2.0.13? |
Thanks for posting in our issue tracker.
Thanks! This is an automated comment, triggered by adding the label |
Unable to reproduce with the info given. |
@samdark Same problem with version 2.0.13 All my model extends the LoginModel: class Fsuser extends \app\models\LoginModel I receive the error: exception 'yii\base\ErrorException' with message 'Trying to get property of non-object' in \basic_14\models\Loginmodel.php:20 |
What's LoginModel? |
Trace looks like it's debug panel, is it? |
Loginmodel is a generic model who i use for switch db in base of controller id. Yes trace is the stacktrace in the debug page |
Issue moved to yiisoft/yii2-debug#306 |
What steps will reproduce the problem?
I have 2 different controller and in login model i want to switch to corret db in base at controller->id
What's expected?
Trying to get property of non-object
Yii::$app->controller = NULL
What do you get instead?
No exception and Yii::$app->controller->id = controller1
Additional info
In yii2 version 2.0.7 the problem not exist.
The text was updated successfully, but these errors were encountered: