Hi I'm creating a backup script , and my backup script runs through all my workspaces saving the app ids with each item object returned as a serialised string , I then use a restore script , and get the entire object with all revisions , comments , relationship ids etc , basically exactly the object you get from PODIO via get_item.
The problem I have is when I run the restore on a test workspace , I delete all the items inside the app , and try to recreate the items with Podioitem::create , but I get a PHP error (Uncaught PodioGoneError: "Item has been deleted") is there a way I can create the new item and keep the item_id of the deleted item?
The reason I want to keep the item_id and not create a new item is to keep my relationship references between all my apps. maybe theres function you can add to you API that would allow the replacement of a deleted item_id. I think this would benefit all the developers trying to create a fully functional backup system.
Please sign in to leave a comment.