-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AccountInfoRequest validation connection support #3687
Conversation
BOOM! Your first PR with us, thank you so much! Someone will take a look at it shortly. Please keep in mind that:
Thank you! -- |
Hi there! Could you please provide us with more info about this? Looks like you skipped the title/body. Thank you! -- |
Hello @devpreview thanks for the PR. Can you please clarify why this is needed ? Why use the If you use prefixes in your tables you should add that prefix to your If you need the same connection with/without prefix just duplicate it and set the Don't forget to clear your config cache Let me know, |
Hello @pxpm I will refactor legacy project and mysql (default, with prefix 'v2_') connection for new models
and mysql_compat (without prefix) connection for old models
And Backpack Admin model Administrator with mysql_compat connection:
On update /admin/edit-account-info I have error:
I think need specifying the connection is necessary for such cases |
Indeed, to use a different connection we need to add the connection to the string. @pxpm I didn't know about Model connections, it's actually very useful. |
I think it will. What do you guys think about doing this inside |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry @devpreview I was unware of that caveat of Rule::unique
. Totally makes sense, we need connection there to correctly make it work.
From my tests we don't need getTableWithPrefix
here.
I've just corrected @promatik suggestion to don't use it.
@pxpm please check my last comment above, #3687 (comment) @tabacitu I tested, and we don't need to "hack" into |
The inspection completed: No new issues |
WHOOP-WHOOP! Congrats, your first PR on this repo has officialy been merged. You should also receive an email inviting you to the Community Members team. That's where we, commited community members, debate new features and decide what's in the Backpack roadmap. Feel free to ignore the invitation if you're not interested :-) If you want to help out the community in other ways, you can:
Again. Thank you for the PR. You are a wonderful person. Keep 'em coming :-) -- P.S. Help in the Backpack community is rewarded with free Backpack commercial licenses. It's the least we can do. If you feel you've helped the community with PRs, help & other stuff, please apply for free licenses and mention this PR. You scratch my back, I scratch your back. Thank you! |
No description provided.