src/ORM/UnsavedRelationList.php
public function changeToList(RelationList $list)
    {
        foreach ($this->items as $key => $item) {
            $list->add($item, $this->extraFields[$key]);
        }
    }
public function changeToList(RelationList $list)
    {
        foreach ($this->items as $key => $item) {
            $list->add($item, $this->extraFields[$key]);
        }
    }
public function changeToList ( RelationList $ list ) { foreach ( $ this -> items as $ key => $ item ) { $ list -> add ( $ item , $ this -> extraFields [ $ key ] ) ; } }
Save all the items in this list into the RelationList

@param RelationList $list
Save all the items in this list into the RelationList