How to change the key name to a field comment when tp5 acquires data

for example: I have a table T1 in which there is a comment named name name field
select name from T1
that gets
array (

).
 [0]=array(
       "name"=>"123"
 ),
 [1]=array(
       "name"=>"236"
 )

)

how to change the above name to name
like
array (

)
 [0]=array(
       ""=>"123"
 ),
 [1]=array(
       ""=>"236"
 )

)

is there a tp5 for the framework that can achieve the effect of sql statements

do you have a master to help take a look!

Mar.01,2021

  

remember that tp can get comment and take a look at the method of model

Menu