WHen i try to do :
$fields = array('id' => 'custom_id', 'title' => 'some_name');
The result I get has id
as a string.
If I do:
$fields = array('custom_id', 'title' => 'some_name');
then it gives custom_id
as integer.
How can I obtain custom_id
as id
without loosing the data type. I read the documentation but didn't found much help.
There is something that virtual fields can do I think. But is it possible inside the find query without the use of virtual fields etc?
Thanks in Advance