-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi, it seems like the undelete functionality is broken.
I tested the following code:
$topic = new midgard_topic();
$topic->name = uniqid("topic" . microtime());
$topic->create();
$stat = $topic->delete();
var_dump("delete", $stat, $topic->metadata->deleted);
// this should work
$stat = midgard_topic::undelete($topic->guid);
var_dump("undelete", $stat, $topic->metadata->deleted);
var_dump(midgard_connection::get_instance()->get_error_string());I would expect the undelete to return true and the metadata_deleted property to be false afterwards. Unfortunately, i get this output instead:
string 'delete' (length=6)
boolean true
boolean true
string 'undelete' (length=8)
boolean false
boolean true
string 'Undefined errorProperty 'guid' doesn't seem to be registered for 'MidgardRepligard' class' (length=89)Kind regards
Metadata
Metadata
Assignees
Labels
No labels