Fixes #4521
change approach to reset $select only when $table, $shema, $field, or $exclude changed
Merge branch 'hotfix/#6094-undefined-symbols-fixes'

Close #6094
Merge pull request #5857 from samsonasik/validator-db

Fixes #4521
[#5857] Better logic for resetting select

- Reset the select object whenever any of the various setters are called that
  could modify the behavior of the select.
Merge branch 'hotfix/5857' into develop

Forward port #5857