How can I change multiple entries in DB?use of getId() & setId() in mage_core_model_abstractCustom Report - Configurable Product - Formula Choice - Multiple Entries in sales_flat_invoice_itemHow can i export multiple table values as a single file specific storeMagento 2: How to override newsletter Subscriber modelHow to save two entries in one table row in Magento 1.9?Correct way to save entries to databaseHow can I remove entries from here?In how many tables, product custom attribute entries saved?how can i change the value of state column in code(sales_order) table from new to processing ?how to calculate sum of selected entries of a column in Magento 2

Testing using real data of the customer

Why A=2 and B=1 in the call signs for Spirit and Opportunity?

Where is Jon going?

Is "vegetable base" a common term in English?

Expected maximum number of unpaired socks

Why does Bran want to find Drogon?

Is superuser the same as root?

Best shape for a necromancer's undead minions for battle?

How to deceive the MC

Cardio work for Muay Thai fighters

Can you still travel to America on the ESTA waiver program if you have been to Iran in transit?

What were the Ethiopians doing in Xerxes' army?

Can a UK national work as a paid shop assistant in the USA?

On San Andreas Speedruns, why do players blow up the Picador in the mission Ryder?

Security vulnerabilities of POST over SSL

Is there an idiom that means that you are in a very strong negotiation position in a negotiation?

Gravitational Force Between Numbers

One word for 'the thing that attracts me'?

Shorten or merge multiple lines of `&> /dev/null &`

Is keeping the forking link on a true fork necessary (Github/GPL)?

Possibility of faking someone's public key

USPS Back Room - Trespassing?

Why is 'additive' EQ more difficult to use than 'subtractive'?

What is the difference between LORD and GOD?



How can I change multiple entries in DB?


use of getId() & setId() in mage_core_model_abstractCustom Report - Configurable Product - Formula Choice - Multiple Entries in sales_flat_invoice_itemHow can i export multiple table values as a single file specific storeMagento 2: How to override newsletter Subscriber modelHow to save two entries in one table row in Magento 1.9?Correct way to save entries to databaseHow can I remove entries from here?In how many tables, product custom attribute entries saved?how can i change the value of state column in code(sales_order) table from new to processing ?how to calculate sum of selected entries of a column in Magento 2






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















In DB I have
Rows:



ID NAME PHONE


Example:



1 Steave 33333333
2 Joe 77777


I can add and Edit any row, but I want when I click "save everyone" I rewrote all phones on DB
example:



1 Steave 33333333
2 Joe 77777


click "edit Joe"
- >>> XML Form
rewrote phone on "555555"
Click "save everyone"
- >>> ControllerAdminthmlSliderSaveEvryone.php



- DO THIS


but how?
If I want to rewrote one item, I create model



 $model = $this->userFactory->create();


after



$id = $this->getRequest()->getParam('user_id');
if ($id)
try
$model = $this->sliderRepository->getById($id);
catch (LocalizedException $e)
$this->messageManager->addErrorMessage(__('This slider no longer exists.'));
return $resultRedirect->setPath('*/*/');


$model->setData($data);
$this->sliderRepository->save($model);


but dont know how rewrite some models :[










share|improve this question









New contributor



Aaron is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    1















    In DB I have
    Rows:



    ID NAME PHONE


    Example:



    1 Steave 33333333
    2 Joe 77777


    I can add and Edit any row, but I want when I click "save everyone" I rewrote all phones on DB
    example:



    1 Steave 33333333
    2 Joe 77777


    click "edit Joe"
    - >>> XML Form
    rewrote phone on "555555"
    Click "save everyone"
    - >>> ControllerAdminthmlSliderSaveEvryone.php



    - DO THIS


    but how?
    If I want to rewrote one item, I create model



     $model = $this->userFactory->create();


    after



    $id = $this->getRequest()->getParam('user_id');
    if ($id)
    try
    $model = $this->sliderRepository->getById($id);
    catch (LocalizedException $e)
    $this->messageManager->addErrorMessage(__('This slider no longer exists.'));
    return $resultRedirect->setPath('*/*/');


    $model->setData($data);
    $this->sliderRepository->save($model);


    but dont know how rewrite some models :[










    share|improve this question









    New contributor



    Aaron is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      1












      1








      1








      In DB I have
      Rows:



      ID NAME PHONE


      Example:



      1 Steave 33333333
      2 Joe 77777


      I can add and Edit any row, but I want when I click "save everyone" I rewrote all phones on DB
      example:



      1 Steave 33333333
      2 Joe 77777


      click "edit Joe"
      - >>> XML Form
      rewrote phone on "555555"
      Click "save everyone"
      - >>> ControllerAdminthmlSliderSaveEvryone.php



      - DO THIS


      but how?
      If I want to rewrote one item, I create model



       $model = $this->userFactory->create();


      after



      $id = $this->getRequest()->getParam('user_id');
      if ($id)
      try
      $model = $this->sliderRepository->getById($id);
      catch (LocalizedException $e)
      $this->messageManager->addErrorMessage(__('This slider no longer exists.'));
      return $resultRedirect->setPath('*/*/');


      $model->setData($data);
      $this->sliderRepository->save($model);


      but dont know how rewrite some models :[










      share|improve this question









      New contributor



      Aaron is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      In DB I have
      Rows:



      ID NAME PHONE


      Example:



      1 Steave 33333333
      2 Joe 77777


      I can add and Edit any row, but I want when I click "save everyone" I rewrote all phones on DB
      example:



      1 Steave 33333333
      2 Joe 77777


      click "edit Joe"
      - >>> XML Form
      rewrote phone on "555555"
      Click "save everyone"
      - >>> ControllerAdminthmlSliderSaveEvryone.php



      - DO THIS


      but how?
      If I want to rewrote one item, I create model



       $model = $this->userFactory->create();


      after



      $id = $this->getRequest()->getParam('user_id');
      if ($id)
      try
      $model = $this->sliderRepository->getById($id);
      catch (LocalizedException $e)
      $this->messageManager->addErrorMessage(__('This slider no longer exists.'));
      return $resultRedirect->setPath('*/*/');


      $model->setData($data);
      $this->sliderRepository->save($model);


      but dont know how rewrite some models :[







      magento2 database model sql






      share|improve this question









      New contributor



      Aaron is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question









      New contributor



      Aaron is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question








      edited May 17 at 7:50







      Aaron













      New contributor



      Aaron is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked May 16 at 15:11









      AaronAaron

      133




      133




      New contributor



      Aaron is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Aaron is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Aaron is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f274936%2fhow-can-i-change-multiple-entries-in-db%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Aaron is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Aaron is a new contributor. Be nice, and check out our Code of Conduct.












          Aaron is a new contributor. Be nice, and check out our Code of Conduct.











          Aaron is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f274936%2fhow-can-i-change-multiple-entries-in-db%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

          Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

          Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림