public function removeChilds($pDbContainer = NULL)
    {
        if ($pDbContainer === NULL) {
            $containers = Agl::app()->getDb()->listCollections(array($this->getIdField()));
        } else {
            $containers = array($pDbContainer);
        }

        foreach ($containers as $container) {
            if ($container === $this->getDbContainer()) {
                continue;
            }

            $childs = $this->getChilds($container);
            foreach ($childs as $child) {
                $child->removeParent($this)->save();
            }
        }

        return $this;
    }