src/View/ActionHandler/AbstractPropertyVisibilityHandler.php
private function intersectModelSetPrimaryId(
        Action $action,
        $intersectModel,
        $idProperty,
        EnvironmentInterface $environment
    ) {
        if (null !== $intersectModel->getId()) {
            return;
        }

        $session = $this->getSession($action, $environment);

        $intersectModel->setId($session['intersectValues'][$idProperty]);
        $intersectModel->setProperty($idProperty, $session['intersectValues'][$idProperty]);
    }
private function intersectModelSetPrimaryId(
        Action $action,
        $intersectModel,
        $idProperty,
        EnvironmentInterface $environment
    ) {
        if (null !== $intersectModel->getId()) {
            return;
        }

        $session = $this->getSession($action, $environment);

        $intersectModel->setId($session['intersectValues'][$idProperty]);
        $intersectModel->setProperty($idProperty, $session['intersectValues'][$idProperty]);
    }
private function intersectModelSetPrimaryId ( Action $ action , $ intersectModel , $ idProperty , EnvironmentInterface $ environment ) { if ( null !== $ intersectModel -> getId ( ) ) { return ; } $ session = $ this -> getSession ( $ action , $ environment ) ; $ intersectModel -> setId ( $ session [ 'intersectValues' ] [ $ idProperty ] ) ; $ intersectModel -> setProperty ( $ idProperty , $ session [ 'intersectValues' ] [ $ idProperty ] ) ; }
Set the primaray id to the model from intersect values.

@param Action               $action         The action.
@param ModelInterface       $intersectModel The intersect model.
@param string               $idProperty     The id property.
@param EnvironmentInterface $environment    The environment.

@return void
Set the primaray id to the model from intersect values .