Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcpearson opened this issue May 8, 2019 · 0 comments
Open

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

marcpearson opened this issue May 8, 2019 · 0 comments

Comments

@marcpearson
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant