CakePHP find not returning correctly - missing model name

前端 未结 1 1870
失恋的感觉
失恋的感觉 2021-01-25 20:32

After performing a find on a model I would expect the result to be of the format

Array
(
    [0] => Array
        (
            [ModelName] => Array
              


        
相关标签:
1条回答
  • 2021-01-25 21:13

    Turns out to be very similar to this.

    Again the problem was with an outdated pdo_mysql version.

    This can be checked by running

    strings -f pdo_mysql.so | grep ': table'

    If there are no results then pdo_mysql is out of date most likely due to an installation such as

    pecl install pdo_mysql
    

    My fix was an easy one

    yum install php53-mysql
    

    I hope that this helps someone.

    0 讨论(0)
提交回复
热议问题