Closed AdamSGit closed 6 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
This is about adding the condition to related()..
related()
The same condition, when defined on the relation itself (in the model property) does end up in the correct place.
No further info received.
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