setMasterField --> addCondition

setMasterField is deprecated for quite a long time, so we better start
using addCondition instead.