We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

current($ResultSet) return PDO object

I have queried for all "Marker" records like so:

$Markers = Marker::find(['order'=>'name ASC','hydration'=>\Phalcon\Mvc\Model\Resultset::HYDRATE_OBJECTS]);

When I call

current($Markers)

I would expect a stdClass object representing the first record in the resultset. Instead I get a \Phalcon\Db\Result\Pdo object.

Is this a bug? I'm using 3.4.2.

Is this the 3.x or the 4.x branch?

Just out of curiosity, what does $Markers->current() output?

3.4.2. $Markers->current() returns boolean FALSE.

Is this the 3.x or the 4.x branch?

Just out of curiosity, what does $Markers->current() output?