-
Sub-task
-
Resolution: Fixed
-
Blocker
-
2.2
-
None
-
MOODLE_22_STABLE
-
MOODLE_23_STABLE
-
w12_
MDL-29894_m23_objectparams -
Easy
-
Before 2.2, the behavior of passing objects to moodle_database methods was undefined and, up to some point, the __toString() magic method was doing its work in a few cases.
But it was not fully supported nor cross-db (MDL-29339) so finally it has been decided to be stricter and prevent (coding exception) any use of objects being passed as params. Caller should perform always the cast instead.
- has been marked as being related by
-
MDL-29339 Oracle error "ORA-01008: not all variables bound" when passing object with __toString in $params
- Closed
-
MDL-30508 Improve handling of objects passed to moodle_database on insert/update operations
- Closed
- Testing discovered
-
MDL-32152 database connection problems while running unit tests
- Closed
- will help resolve
-
MDL-31828 Student can't submit if the essay question type is in the quiz (2.2)
- Closed