protected function prepareResult(&$data, array $options)
    {
        if (!empty($options['unserialize']) && !empty($data)) {
            foreach ((array) $options['unserialize'] as $field) {
                $data[$field] = empty($data[$field]) ? array() : unserialize($data[$field]);
            }
        }
    }
protected function prepareResult(&$data, array $options)
    {
        if (!empty($options['unserialize']) && !empty($data)) {
            foreach ((array) $options['unserialize'] as $field) {
                $data[$field] = empty($data[$field]) ? array() : unserialize($data[$field]);
            }
        }
    }
protected function prepareResult ( & $ data , array $ options ) { if ( ! empty ( $ options [ 'unserialize' ] ) && ! empty ( $ data ) ) { foreach ( ( array ) $ options [ 'unserialize' ] as $ field ) { $ data [ $ field ] = empty ( $ data [ $ field ] ) ? array ( ) : unserialize ( $ data [ $ field ] ) ; } } }
Prepares a single result
@param mixed $data
@param array $options
Prepares a single result