I
I
IvanOne2014-04-23 21:13:06
MySQL
IvanOne, 2014-04-23 21:13:06

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

2 answer(s)
S
Sergey, 2014-04-23
@IvanOne

no. You can convert the data to a DTO, or cast to afterFind. Or use DoctrineORM.

I
IvanOne, 2014-04-23
@IvanOne

thank!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question