philipbrown / magniloquent

DEPRECATED, USE https://github.com/dwightwatson/validating
MIT License
70 stars 8 forks source link

Support for multiple database connections #25

Closed ghost closed 10 years ago

ghost commented 10 years ago

Add $validation->getPresenceVerifier()->setConnection($this->connection); in Validate function after creating Validator.

Cheers.

byjml commented 10 years ago

+1

This would be helpful for multi-tenant app I'm currently working on, which has a separate database for each tenant.

kennonb commented 10 years ago

I added this myself, but this was something I ran into as well.

I can submit a pull request, if you'd like, but it was easy enough to add.

philipbrown commented 10 years ago

@kennonb Yeah that would be great, thank you!

kennonb commented 10 years ago

Here you go.

28