public function removeAll()
    {
        foreach ($this->_associated_objects as $parent_property => $object) {
            /**
             * @var Model
             */
            $object->setDirty($parent_property);
        }
        $this->exchangeArray([]);
    }
public function removeAll()
    {
        foreach ($this->_associated_objects as $parent_property => $object) {
            /**
             * @var Model
             */
            $object->setDirty($parent_property);
        }
        $this->exchangeArray([]);
    }
public function removeAll ( ) { foreach ( $ this -> _associated_objects as $ parent_property => $ object ) { /**
             * @var Model
             */ $ object -> setDirty ( $ parent_property ) ; } $ this -> exchangeArray ( [ ] ) ; }
Remove all of the values int he collection
Remove all of the values int he collection