src/Entity/Tree/AbstractLeafs.php
public function updateValues()
    {
        $values = [];
        /* @var NodeInterface $item */
        foreach ($this->getItems() as $item) {
            if (!is_null($item)) {
                $values[] = $item->getValueWithParents();
            }
        }

        $this->values = $values;
    }
public function updateValues()
    {
        $values = [];
        /* @var NodeInterface $item */
        foreach ($this->getItems() as $item) {
            if (!is_null($item)) {
                $values[] = $item->getValueWithParents();
            }
        }

        $this->values = $values;
    }
Updates the item values.

@ODM\PrePersist
@ODM\PreUpdate