RSS Feed/News entity::delete inconsistent with entity::save

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,752
Points
823

Reputation:

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