You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say you fetch five entities from the DB, and want to delete each one. Iterate over the collection, wrapping each entity as a node, and then call $node->delete(). Only some of the nodes will be deleted, and the pattern seems to be that every other entity is not deleted. So, if you tried deleting the five entities, the second and fourth entities would not be deleted.
Looking at NodeWrapper::delete(), if you output the result of $qb->getQuery()->execute() (line 1182) you'll get back 0 for every other query.
The text was updated successfully, but these errors were encountered:
I was able to work around the issue by reversing my original array of entities, so that the ones with higher rgt values were processed before those whose rgt values were lower.
Say you fetch five entities from the DB, and want to delete each one. Iterate over the collection, wrapping each entity as a node, and then call
$node->delete()
. Only some of the nodes will be deleted, and the pattern seems to be that every other entity is not deleted. So, if you tried deleting the five entities, the second and fourth entities would not be deleted.Looking at NodeWrapper::delete(), if you output the result of
$qb->getQuery()->execute()
(line 1182) you'll get back 0 for every other query.The text was updated successfully, but these errors were encountered: