public function commitEntities(&$failed = null)
    {
        if ($ret = parent::commitEntities($failed)) {
            $ids = array();

            foreach ($this->_entities as $entity) {
                if ($entity->getEntityState() ==  AnDomain::STATE_DESTROYED) {
                    if (is($entity, 'ComBaseDomainEntityNode')) {
                        $ids[] = $entity->id;
                    }
                }
            }

            if (!empty($ids)) {
                $this->cleanupNodesWithIds($ids);
            }
        }

        return $ret;
    }
public function commitEntities(&$failed = null)
    {
        if ($ret = parent::commitEntities($failed)) {
            $ids = array();

            foreach ($this->_entities as $entity) {
                if ($entity->getEntityState() ==  AnDomain::STATE_DESTROYED) {
                    if (is($entity, 'ComBaseDomainEntityNode')) {
                        $ids[] = $entity->id;
                    }
                }
            }

            if (!empty($ids)) {
                $this->cleanupNodesWithIds($ids);
            }
        }

        return $ret;
    }
public function commitEntities ( & $ failed = null ) { if ( $ ret = parent :: commitEntities ( $ failed ) ) { $ ids = array ( ) ; foreach ( $ this -> _entities as $ entity ) { if ( $ entity -> getEntityState ( ) == AnDomain :: STATE_DESTROYED ) { if ( is ( $ entity , 'ComBaseDomainEntityNode' ) ) { $ ids [ ] = $ entity -> id ; } } } if ( ! empty ( $ ids ) ) { $ this -> cleanupNodesWithIds ( $ ids ) ; } } return $ ret ; }
After a succesfull commit perform a cleanup of nodes.

@param mixed &$failed Return the failed set

@return bool Return if all the entities passed the validations
After a succesfull commit perform a cleanup of nodes .