fuel / orm

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

Condition in query relation generate a WHERE #390

Closed AdamSGit closed 6 years ago

AdamSGit commented 8 years ago

When you put a condition in a query relation, it generate a WHERE clause in the main query instead of an ON clause (Fuel 1.8, on both has_one and has_many relation) Link to the forum post about it : http://fuelphp.com/forums/discussion/13815/condition-in-relation-and-empty-result

WanWizard commented 8 years ago

This is about adding the condition to related()..

The same condition, when defined on the relation itself (in the model property) does end up in the correct place.

WanWizard commented 6 years ago

No further info received.