mollie / mollie-api-php

Mollie API client for PHP
http://www.mollie.com
BSD 2-Clause "Simplified" License
553 stars 191 forks source link

whereStatus on MandateCollection doesn't change count #658

Closed JeroenVanOort closed 1 year ago

JeroenVanOort commented 1 year ago

Specifications

Describe the issue

I'm trying to check if a customer has a valid mandate. So I filter the MandateCollection using it's whereStatus function and check if count > 0. However, the new collection created by whereStatus always has the same count as the original collection. See: https://github.com/mollie/mollie-api-php/blob/34ad0d291b9d394ce1199f166ca51d68f5e05ab3/src/Resources/MandateCollection.php#L29

I don't have the time to fix this right now but I did want someone to know about this.

sandervanhooft commented 1 year ago

Fixed! Thank you for reporting @JeroenVanOort