XF / News entity::delete inconsistent with entity::save

Status
Not open for further replies.

Bots

Registered
Joined
May 3, 2024
Messages
3,680
Reaction score
1
In entity::save, it is possible to extend _saveToSource in order to do some last minute tasks before saving an entity, compared to _postSave etc, which takes place afterwards.

However, there is no corresponding reverse method in entity::delete. $db->update is called directly, where one would expect a _deleteFromSource method. Such a method would allow us to perform last minute tasks before the entity is removed from the database, which is important in case some tasks require...

Read more

Continue reading...
 
Status
Not open for further replies.
Top