src/Controller/RelationshipManager.php
public function setSameParentForAll(CollectionInterface $models, ModelInterface $sourceModel, $parentTable)
    {
        foreach ($models as $model) {
            $this->setSameParent($model, $sourceModel, $parentTable);
        }
    }
public function setSameParentForAll(CollectionInterface $models, ModelInterface $sourceModel, $parentTable)
    {
        foreach ($models as $model) {
            $this->setSameParent($model, $sourceModel, $parentTable);
        }
    }
public function setSameParentForAll ( CollectionInterface $ models , ModelInterface $ sourceModel , $ parentTable ) { foreach ( $ models as $ model ) { $ this -> setSameParent ( $ model , $ sourceModel , $ parentTable ) ; } }
Sets the same parent for all models.

@param CollectionInterface $models      The collection of models to apply the parent to.
@param ModelInterface      $sourceModel The model that the values shall get retrieved from.
@param string              $parentTable The name of the parent table for the models.

@return void
Sets the same parent for all models .