Skip to content
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

is_unique tried to connect to default database instead of defined in DBGroup. #1345

Merged
merged 4 commits into from
Oct 29, 2018

Conversation

nowackipawel
Copy link
Contributor

Fixes #1326

Fixes codeigniter4#1326  - passing DBGroup do Validation.
Adding DBGroup to $data and passing it to processRules. codeigniter4#1326
Finally passing correct DBGroup to Database::connect; codeigniter4#1326
@@ -123,10 +123,13 @@ public function __construct($config, RendererInterface $view)
*
* @return bool
*/
public function run(array $data = null, string $group = null): bool
public function run(array $data = null, string $group = null, ?string $db_group = null): bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for the optional signifier when using null. Prefer not to have those.

optional signifier has been removed.
@jim-parry jim-parry merged commit 6d338ed into codeigniter4:develop Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants