[BUG]: Phalcon\Mvc\Model::getPreparedQuery should return QueryInterface
instead of Query
#15562
Labels
5.0
The issues we want to solve in the 5.0 release
breaks bc
Functionality that breaks Backwards Compatibility
bug
A bug report
status: medium
Medium
Describe the bug
This seems to be the only place where only
Phalcon\Mvc\Model\Query
is supported as a return type, although any implementation ofPhalcon\Mvc\Model\QueryInterface
should be allowed.cphalcon/phalcon/Mvc/Model.zep
Line 5222 in afa141d
To Reproduce
Steps to reproduce the behavior:
Phalcon\Mvc\Model\QueryInterface
.Expected behavior
Phalcon\Mvc\Model::getPreparedQuery
should allow to returnQueryInterface
Details
The text was updated successfully, but these errors were encountered: