Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
FOF30
Model
DataModel
Relation
BelongsToMany
saveAll
FOF30\Model\DataModel\Relation\BelongsToMany::saveAll PHP Метод
Документация по классу BelongsToMany
Показать файл
Открыть проект
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(); }
BelongsToMany
__construct
filterForeignModel
getCountSubquery
getNew
saveAll
saveRelations
setDataFromCollection