Forums / Developer / Removing a container node that have object-relations

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Removing a container node that have object-relations

Author Message

Nicolas R

Monday 09 March 2009 3:11:43 am

Hello,

I have nodes that have object-relations to other nodes. When removing those nodes, I would like that all attached nodes are removed too.
How can I do it ?
Thank you.

Jean-Yves Zinsou

Monday 09 March 2009 1:00:40 pm

Hi,
I would say that the only way of doing it is to make an extension with a custom removal module that takes care of fetching the related content and delete them..

I don't know if you are familiare with Exponential extensions, but here is a good start guide :
http://ez.no/fr/developer/articles/an_introduction_to_developing_ez_publish_extensions

To use with :
http://pubsvn.ez.no/doxygen/4.0/html/

Hope this helps !
Jey

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr