FOF30\Model\DataModel\Relation\BelongsToMany::saveAll PHP Метод

saveAll() публичный Метод

Saves all related items. For many-to-many relations there are two things we have to do: 1. Save all related items; and 2. Overwrite the pivot table data with the new associations
public saveAll ( )
    public function saveAll()
    {
        // Save all related items
        parent::saveAll();
        $this->saveRelations();
    }