protected function addLastModel()
    {
        if (!$this->lastModelPopulator) {
            return;
        }

        $this->addOwners($this->lastModelPopulator->getOwners());

        $this->modelPopulators[$this->lastModelClass] = $this->lastModelPopulator;
        $this->quantities[$this->lastModelClass] = $this->lastQuantity;
    }
protected function addLastModel()
    {
        if (!$this->lastModelPopulator) {
            return;
        }

        $this->addOwners($this->lastModelPopulator->getOwners());

        $this->modelPopulators[$this->lastModelClass] = $this->lastModelPopulator;
        $this->quantities[$this->lastModelClass] = $this->lastQuantity;
    }
protected function addLastModel ( ) { if ( ! $ this -> lastModelPopulator ) { return ; } $ this -> addOwners ( $ this -> lastModelPopulator -> getOwners ( ) ) ; $ this -> modelPopulators [ $ this -> lastModelClass ] = $ this -> lastModelPopulator ; $ this -> quantities [ $ this -> lastModelClass ] = $ this -> lastQuantity ; }
Push the ModelPopulator and quantity of the last added model
onto their respective fields.

@return void
Push the ModelPopulator and quantity of the last added model onto their respective fields .