Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to make query with join type using or with join statment
  • Hi I have question how to make 'or' in orm query using join_on which will produce someting like this
    ...OUTER LEFT JOIN `photos` ON (`t3_through`.`photo_id` = `t3`.`id`) AND (`t3`.`type` = 2 OR `t3`.`type` = NULL)...
    is this possible with orm

  • You can not, ORM only supports AND at the moment.

    If you want you can create a feature request for it, at https://github.com/fuel/orm

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion