-
-
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
mognodb database name is hardcoded in all Models #296
Comments
The solution sounds like the one breaking backwards compatibility. Am I correct? We may do it in 2.2.0. |
I didn't get what you mean by "breaking backwards compatibility". What I am trying to say is like assume I have one yii2 where I have 50 collections. |
"breaking backwards compatibility" means that if we'll replace database name with collection name, existing applications that relied on the old behavior may break. |
yes samdark. that is correct. if we change the database name only in config file and don't make change in all models it will break. collection-name remaining same. |
What steps will reproduce the problem?
Generate any model with MongoGii.
What is the expected result?
The model should take only collection name like mysql table. else problem is, if I copy the setup to another instance, I need to manually find and replace all occurrences of database-name. when we are already providing the database name in config, why it needs the db info from model.
What do you get instead?
Additional info
The text was updated successfully, but these errors were encountered: