Webiny\Component\Entity\Attribute\Many2ManyAttribute::unlinkAll PHP Méthode

unlinkAll() public méthode

Remove all items from man2many collection (removes the links between entities)
public unlinkAll ( ) : boolean
Résultat boolean
    public function unlinkAll()
    {
        foreach ($this->getValue() as $value) {
            $this->unlinkItem($value);
        }
        // Reset current value
        $this->value = new EntityCollection($this->getEntity());
        return true;
    }