[4.2] Gey keyName before instance can be translated into builder
[4.2] Always operate with query builder to prevent possible bugs
Merge pull request #4547 from ambrella/4.2

[4.2] Gey keyName before instance can be translated into builder
Merge branch '4.2'