public function generateDeletedProxies()
    {
        $droppedProxies = array_diff($this->oldProxyKeys, $this->newProxyKeys);

        foreach ($droppedProxies as $droppedProxy) {
            $modelState = $this->fromState->getModelState($droppedProxy);
            $meta = $this->oldRegistry->getModel($droppedProxy)
                ->getMeta();

            // create operation
            $this->addOperation(
                $meta->getAppName(),
                DeleteModel::createObject(
                    [
                        'name' => $modelState->name,
                    ]
                )
            );
        }
    }
public function generateDeletedProxies()
    {
        $droppedProxies = array_diff($this->oldProxyKeys, $this->newProxyKeys);

        foreach ($droppedProxies as $droppedProxy) {
            $modelState = $this->fromState->getModelState($droppedProxy);
            $meta = $this->oldRegistry->getModel($droppedProxy)
                ->getMeta();

            // create operation
            $this->addOperation(
                $meta->getAppName(),
                DeleteModel::createObject(
                    [
                        'name' => $modelState->name,
                    ]
                )
            );
        }
    }
public function generateDeletedProxies ( ) { $ droppedProxies = array_diff ( $ this -> oldProxyKeys , $ this -> newProxyKeys ) ; foreach ( $ droppedProxies as $ droppedProxy ) { $ modelState = $ this -> fromState -> getModelState ( $ droppedProxy ) ; $ meta = $ this -> oldRegistry -> getModel ( $ droppedProxy ) -> getMeta ( ) ; // create operation $ this -> addOperation ( $ meta -> getAppName ( ) , DeleteModel :: createObject ( [ 'name' => $ modelState -> name , ] ) ) ; } }
Makes DeleteModel statements for proxy models.

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
Makes DeleteModel statements for proxy models .