how to delete an Express Data Object from within the Dashboard
Permalink
for testing purposes I created some Data Objects from within the Dashboard (so not programmatically).
Is there a way to delete these Data Objects also from within the Dashboard?
If not, can I safely remove the concerning row in the ExpressEntities database table or will it cause C5 to crash somewhere?
Concrete 8.5.5
Is there a way to delete these Data Objects also from within the Dashboard?
If not, can I safely remove the concerning row in the ExpressEntities database table or will it cause C5 to crash somewhere?
Concrete 8.5.5
Thank you mnakalay,
it's as simple as that. I feel almost embarrassed that I didn't find that big red delete button myself :) That's why I'll mark this answer directly as Best Answer.
But I still have a problem deleting some objects. I have two objects that I can't delete, because the site encounters an error when I click "Edit entity" or "View ..Entries". The other options in the Object details menu are still accessible (e.g. Details, Associations, Forms...).
The "Edit Entity" page encounters a failure on loading
…/single_pages/dashboard/system/express/entities/edit.php78 (see screenshot)
for " Error Call to a member function getTreeNodeID() on null"
and the "View ... Entries" page encounters a failure on loading
…/src/Page/Controller/DashboardExpressEntriesPageController.php76
for " Error Call to a member function populateDirectChildrenOnly() on null"
Probably during testing of these objects I messed up something. Now I want to delete them, but in order to delete I have to be able to access the "Edit Entity" page and it's this page that can't be loaded.
In the database table "Treenodes" I can find the rows for the objects that I can delete, but I don't see a row for the two objects I can't delete. Duplicating such a row and changhing the name of the object to delete in the column treeNodeName doesn't help.
How can I make this object editable and/or deletable again?
Thanks!
it's as simple as that. I feel almost embarrassed that I didn't find that big red delete button myself :) That's why I'll mark this answer directly as Best Answer.
But I still have a problem deleting some objects. I have two objects that I can't delete, because the site encounters an error when I click "Edit entity" or "View ..Entries". The other options in the Object details menu are still accessible (e.g. Details, Associations, Forms...).
The "Edit Entity" page encounters a failure on loading
…/single_pages/dashboard/system/express/entities/edit.php78 (see screenshot)
for " Error Call to a member function getTreeNodeID() on null"
and the "View ... Entries" page encounters a failure on loading
…/src/Page/Controller/DashboardExpressEntriesPageController.php76
for " Error Call to a member function populateDirectChildrenOnly() on null"
Probably during testing of these objects I messed up something. Now I want to delete them, but in order to delete I have to be able to access the "Edit Entity" page and it's this page that can't be loaded.
In the database table "Treenodes" I can find the rows for the objects that I can delete, but I don't see a row for the two objects I can't delete. Duplicating such a row and changhing the name of the object to delete in the column treeNodeName doesn't help.
How can I make this object editable and/or deletable again?
Thanks!
Try refreshing your database entities. You can do that by navigating to your dashboard page /dashboard/system/environment/entities
When that's done, trying deleting your objects again.
When that's done, trying deleting your objects again.
That doesn't help. Still the same error:
Express / View Entries gives for these 2 objects:
"Error
Call to a member function populateDirectChildrenOnly() on null"
and
System&Settings / Express / Data objects / [the concerning object] / Edit Entity still gives this error:
"Error
Call to a member function getTreeNodeID() on null"
even after Refreshing Entities in System / Environment / Database Entities.
However, I can't reproduce this error, because when I create a new object , I can delete it now. Only those 2 objects with which I did some testing I still can't delete. I'll post back here if it occurs a third time and I found out how to reproduce it.
Express / View Entries gives for these 2 objects:
"Error
Call to a member function populateDirectChildrenOnly() on null"
and
System&Settings / Express / Data objects / [the concerning object] / Edit Entity still gives this error:
"Error
Call to a member function getTreeNodeID() on null"
even after Refreshing Entities in System / Environment / Database Entities.
However, I can't reproduce this error, because when I create a new object , I can delete it now. Only those 2 objects with which I did some testing I still can't delete. I'll post back here if it occurs a third time and I found out how to reproduce it.
There click on "edit entity" in the left-hand menu and you'll get a "delete" button in the bottom left-hand corner