Reload items after saving so that we convert their members to strings.

This commit is contained in:
Bharat Mediratta
2010-01-22 01:10:52 -08:00
parent 0efbfcbe61
commit 61198c22aa

View File

@@ -30,7 +30,7 @@ class test_Core {
}
static function random_album($parent=null) {
return test::random_album_unsaved($parent)->save();
return test::random_album_unsaved($parent)->save()->reload();
}
static function random_photo_unsaved($parent=null) {
@@ -45,7 +45,7 @@ class test_Core {
}
static function random_photo($parent=null) {
return test::random_photo_unsaved($parent)->save();
return test::random_photo_unsaved($parent)->save()->reload();
}
static function random_user($password="password") {