Fork me on GitHub

complex joins in selectExpandedObjectArray()  Bottom

  • The info in the JOINS section in the Wiki is good but a little sparse. I need to do a left join on more than one condition, i.e.:

    LEFT JOIN relatedtable ON relatedtable.id = table.id AND column2 = 'value'

    How do you do this? I tried passing an array in compare_field_table and compare_field_join like you can in the select values but it didn't like it.
  • I don't think you can do this right now. The best thing to do right now is to manually construct the SQL and then use DBUtil::marshallObjects() to build the result array.

    Greetings
    R

This list is based on users active over the last 60 minutes.