Skip to content

Fix #46 broke searching with relation's field  #48

@marcpearson

Description

@marcpearson

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 #46 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions