Open danFWD opened 1 year ago
Just wanted to leave a note so you might either update your documentation or the method itself. When trying to return a count, if your $statement->fetchAll uses PDO::FETCH_OBJ instead of PDO::FETCH_ASSOC, the count method will always return 0.
$statement->fetchAll
PDO::FETCH_OBJ
PDO::FETCH_ASSOC
Thanks
Just wanted to leave a note so you might either update your documentation or the method itself. When trying to return a count, if your
$statement->fetchAll
usesPDO::FETCH_OBJ
instead ofPDO::FETCH_ASSOC
, the count method will always return 0.Thanks