get_master_foreign_key() get_master_foreign_key() Returns the foreign key of the master object. This is either the ID or the GUID of the master object, depending on the $master_is_id member.