As far as I am concerned no law (of either country) is being violated here. It is a fact that visit or business visas can be converted into working visa and all documentations passed through the Labor and Immigration department of Qatar.
Like I said if a person holds a proper travel documents, the Philippine government has no right to stop him/her from traveling. And please let us not justify corruption in any form.