src/Controller/RelationshipManager.php
public function setParentForAll(CollectionInterface $models, ModelInterface $parentModel)
    {
        foreach ($models as $model) {
            $this->setParent($model, $parentModel);
        }
    }
public function setParentForAll(CollectionInterface $models, ModelInterface $parentModel)
    {
        foreach ($models as $model) {
            $this->setParent($model, $parentModel);
        }
    }
public function setParentForAll ( CollectionInterface $ models , ModelInterface $ parentModel ) { foreach ( $ models as $ model ) { $ this -> setParent ( $ model , $ parentModel ) ; } }
Sets the parent for all models.

@param CollectionInterface $models      The collection of models to apply the parent to.
@param ModelInterface      $parentModel The new parent model.

@return void
Sets the parent for all models .