Skip to content

Undelete broken? #121

@floegel

Description

@floegel

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions