i have a withCriteria with createAlias("xRecords", "x", CriteriaSpecification.LEFT_JOIN)
createAlias("xRecords", "x", CriteriaSpecification.LEFT_JOIN)
When i try to do sqlRestriction("x.y > 1") I get the error:
sqlRestriction("x.y > 1")
Unknown column ‘x.y’ in ‘where clause’
y is a column in xRecords.
y
xRecords
What am i missing?
1.4m articles
1.4m replys
5 comments
57.0k users