concrete/src/Attribute/Category/UserCategory.php
protected function saveFromRequest(Key $key, Request $request)
    {
        $key->setAttributeKeyDisplayedOnProfile((string) $request->request->get('uakProfileDisplay') == 1);
        $key->setAttributeKeyEditableOnProfile((string) $request->request->get('uakProfileEdit') == 1);
        $key->setAttributeKeyRequiredOnProfile((string) $request->request->get('uakProfileEditRequired') == 1);
        $key->setAttributeKeyEditableOnRegister((string) $request->request->get('uakRegisterEdit') == 1);
        $key->setAttributeKeyRequiredOnRegister((string) $request->request->get('uakRegisterEditRequired') == 1);
        $key->setAttributeKeyDisplayedOnMemberList((string) $request->request->get('uakMemberListDisplay') == 1);
        // Actually save the changes to the database
        $this->entityManager->flush();
        return $key;
    }
protected function saveFromRequest(Key $key, Request $request)
    {
        $key->setAttributeKeyDisplayedOnProfile((string) $request->request->get('uakProfileDisplay') == 1);
        $key->setAttributeKeyEditableOnProfile((string) $request->request->get('uakProfileEdit') == 1);
        $key->setAttributeKeyRequiredOnProfile((string) $request->request->get('uakProfileEditRequired') == 1);
        $key->setAttributeKeyEditableOnRegister((string) $request->request->get('uakRegisterEdit') == 1);
        $key->setAttributeKeyRequiredOnRegister((string) $request->request->get('uakRegisterEditRequired') == 1);
        $key->setAttributeKeyDisplayedOnMemberList((string) $request->request->get('uakMemberListDisplay') == 1);
        // Actually save the changes to the database
        $this->entityManager->flush();
        return $key;
    }
protected function saveFromRequest ( Key $ key , Request $ request ) { $ key -> setAttributeKeyDisplayedOnProfile ( ( string ) $ request -> request -> get ( 'uakProfileDisplay' ) == 1 ) ; $ key -> setAttributeKeyEditableOnProfile ( ( string ) $ request -> request -> get ( 'uakProfileEdit' ) == 1 ) ; $ key -> setAttributeKeyRequiredOnProfile ( ( string ) $ request -> request -> get ( 'uakProfileEditRequired' ) == 1 ) ; $ key -> setAttributeKeyEditableOnRegister ( ( string ) $ request -> request -> get ( 'uakRegisterEdit' ) == 1 ) ; $ key -> setAttributeKeyRequiredOnRegister ( ( string ) $ request -> request -> get ( 'uakRegisterEditRequired' ) == 1 ) ; $ key -> setAttributeKeyDisplayedOnMemberList ( ( string ) $ request -> request -> get ( 'uakMemberListDisplay' ) == 1 ) ; // Actually save the changes to the database $ this -> entityManager -> flush ( ) ; return $ key ; }
Update the user attribute key with the data received from POST.

@param \Concrete\Core\Entity\Attribute\Key\UserKey $key The user attribute key to be updated
@param \Symfony\Component\HttpFoundation\Request $request The request containing the posted data

@return \Concrete\Core\Entity\Attribute\Key\UserKey
Update the user attribute key with the data received from POST .