It won't affect your application as long as you are honest about it. In the PR application, there are 2 questions that ask if you have been refused a visa before, you will have to answer yes and provide details about the refusals. I have been refused three Canadian visas but my application has been approved. Good luck!