fuel / orm

Fuel PHP Framework - Fuel v1.x ORM
http://fuelphp.com/docs/packages/orm/intro.html
152 stars 96 forks source link

fixed many-to-many relation not using write connection #331

Closed SlKelevro closed 10 years ago

SlKelevro commented 10 years ago

This already cost us some problems with replication =(

There are also Orm\Model::connection() calls in the join() method of each relation, but I'm not sure if they should be fixed too (seems like they're only used with SELECT queries).

WanWizard commented 10 years ago

Good find!

I did a check on all files in the package, but these three seem to be the only ones that would require the "write" connection.