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;
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
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.
add a comment |
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
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.
add a comment |
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
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
magento2 database model sql
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.
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.
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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