fastmail / Ix

automatic generation of JMAP-style APIs
GNU General Public License v2.0
10 stars 5 forks source link

Alh/filter with joins #67

Closed wolfsage closed 7 years ago

wolfsage commented 7 years ago
Allow filtering on joined tables to work

We must pass the join conditions to our queries to retrieve the
totals.

Also, we must walk the method chain of a joined table filter
when comparing values in getFooUpdates.

For example, if we join on:

  recipe.is_delicious

Then, to compare values, we must go:

  $row->recipe->is_delicious

instead of just

  $row->recipe.is_delicious

Also, compare boolean values properly between provided filters and db rows