Closed Nereg closed 5 years ago
Hi @Nereg, good question!
It looks you're missing some imports for QueryResult
. You have to import React\MySQL\QueryResult
.
Because this import is missing, your code will yield a TypeError
that will cause the resulting promise to be rejected. You should be able to see this problem by appending another ->then(null, 'printf')
after the first then()
. I understand this default behavior is frustrating, that's why we're working on https://github.com/reactphp/promise/issues/87 to improve default error reporting.
I hope this helps :+1:
Yes that worked for me ! Thank you very much for your help !
Hello ! I`m experiencing some problems with that code :
I just can't get any result from this query. Also I found that the request is being executed. What I'm doing wrong ?