public function toPHP($value, Driver $driver)
    {
        $value = parent::toPHP($value, $driver);

        return is_array($value) ? array_map(function ($value) {
            return is_array($value) ? new Entity($value) : $value;
        }, $value) : $value;
    }
public function toPHP($value, Driver $driver)
    {
        $value = parent::toPHP($value, $driver);

        return is_array($value) ? array_map(function ($value) {
            return is_array($value) ? new Entity($value) : $value;
        }, $value) : $value;
    }
public function toPHP ( $ value , Driver $ driver ) { $ value = parent :: toPHP ( $ value , $ driver ) ; return is_array ( $ value ) ? array_map ( function ( $ value ) { return is_array ( $ value ) ? new Entity ( $ value ) : $ value ; } , $ value ) : $ value ; }
Convert string values to PHP arrays.
@param mixed $value The value to convert
@param \Cake\Database\Driver $driver The driver instance to convert with
@return mixed
Convert string values to PHP arrays .