-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Erros generating crud with gii #378
Comments
It seems to me like your model is not extending the right subclass. Can you show us the model code ? |
Sure @machour this is the model's code:
The model was created manually copying code from a previous project but if I try to generate with Gii I get a similar result:
|
Oh, it seems that mongodb requires an extra configuration to be used with Gii, could you check if you have this in place in your configuration? |
Yes I do and if I'm not wrong that has nothing to do with CRUD generation but Model generation. |
What steps will reproduce the problem?
What's expected?
What do you get instead?
Call to undefined method common\models\mongo\Lab::getTableSchema()
Additional info
This is the code causing the error and it is part of https://github.com/yiisoft/yii2-gii package actually, but I'm not sure if the error comes from Gii or this extension needs some tweaking so it doesn't show up.
What I did see is that in the past it worked, but Gii was updated and it stopped working. Previously the code was:
So as a workaround if you swap one line with the other it works. But again this is Gii code.
Also second lighter error
create
action:Calling unknown method: common\models\mongo\Lab::loadDefaultValues()
The text was updated successfully, but these errors were encountered: