Bug Report #2532

ORM::validate() doesn't load data correctly

Added by Isaiah DeRose-Wilson about 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:02/02/2010
Priority:NormalDue date:
Assignee:Isaiah DeRose-Wilson% Done:

100%

Category:-
Target version:2.0
Resolution: Points:

Description

The ORM::validate() function merges the validation data directly into ORM::$object, so __get() doesn't get called. Because __get() doesn't run ORM::$changes doesn't get updated and the data isn't saved correctly.

Associated revisions

Revision 4761
Added by Isaiah DeRose-Wilson about 4 years ago

Updated ORM::validate() to load the data correctly. Fixes #2532

History

#1 Updated by Isaiah DeRose-Wilson about 4 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset r4761.

#2 Updated by Isaiah DeRose-Wilson about 4 years ago

  • Status changed from Closed to Feedback

There is one problem with this patch, __get() is called twice for data loaded via load_values() instead an ORM object.

#3 Updated by Isaiah DeRose-Wilson about 4 years ago

  • Project changed from Kohana v2.x to ORM - K2
  • Category deleted (Libraries:ORM)
  • Target version deleted (2.4)

#4 Updated by Isaiah DeRose-Wilson about 4 years ago

  • Target version set to 2.0

#5 Updated by Isaiah DeRose-Wilson about 4 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF