Closed
Description
Phalcon\Mvc\Model\Resultset\Simple::toArray() method gives wrong result if empty.
It returns a correct array if not empty, and null if empty instead of an empty array (array()).
Here is the doc associated to the interface Phalcon\Mvc\Model\ResultsetInterface :
Returns a complete resultset as an array, if the resultset has a big number of rows
it could consume more memory than currently it does.
@return array
public function toArray();
Metadata
Assignees
Labels
No labels