Answer the question
In order to leave comments, you need to log in
Yii fetching data
There is a mysql database, there is yii which selects data using the findAll method. The problem is that the data is stored in int, and the method returns a string. Is there any tool or setting in yii that returns already typed data?
Answer the question
In order to leave comments, you need to log in
no. You can convert the data to a DTO, or cast to afterFind. Or use DoctrineORM.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question