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

modelsManager return types?

Hi. When I do query using modelsManager all return values are string, but i want integer/boolean etc. How to tell it to use for example models annotations to figure type ?

Im using also joins.

The way the ORM returns the types is directly related to PDO. PDO always return types as strings by default. Depending on the driver you're using. ie in mysqlnd the values can be returned the same way as they are in the database.

References: