Bug Report #4188

ORM _unserialize_value() can result in stdClass for associative array

Added by Darryl Hein 9 months ago. Updated 3 months ago.

Status:Closed Start date:08/07/2011
Priority:Normal Due date:
Assignee:Lorenzo Pisani % Done:

100%

Category:-
Target version:Kohana v3.x - v3.3.0
Resolution:fixed Points:1

Description

Even though an associative array is passed into ORM, an stdClass is returned after json_decode/unserialize. Should probably add the second parameter to json_decode.

related discussion: http://forum.kohanaframework.org/discussion/9465/orm-serialize-columns-json-and-stdclass
json_decode: http://www.php.net/manual/en/function.json-decode.php

Associated revisions

Revision 59c7d119
Added by Lorenzo Pisani 3 months ago

making sure fields are unserialized as arrays (fixes #4188)

History

Updated by Lorenzo Pisani 9 months ago

  • Assignee set to Lorenzo Pisani
  • Target version set to v3.3.0

Updated by Jeremy Bush 5 months ago

  • Target version changed from v3.3.0 to Unscheduled

Updated by Lorenzo Pisani 3 months ago

  • Status changed from New to Closed
  • Target version changed from Unscheduled to v3.3.0
  • % Done changed from 0 to 100
  • Resolution set to fixed

Also available in: Atom PDF