Fix #46 broke searching with relation's field
Hi Excuse my english, I'm french. I'll do my best to explain
The fix for fullColumName is not working like before the depracated relatedTableAlias. Searching for a field from a relation table is not working.
I have submitted a pull request many weeks ago but you change the fix in your correction for columnName function.
The fullColumnName return from your function didn't match with the real related table name in the database.
the query contain a criteria format like : maintable__rel__relation.myfield But the good one should be formatted as : real_related_table_name.field
My relation is defined in the model of main table with { ... relation: Model.HasOneRelation, ... }
Originally posted by @marcpearson in https://github.com/Vincit/objection-find/pull/46#issuecomment-488355468