di.xml ExtensionPool create/read handlers Conflicts





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







2















I am creating extensionpool handlers to save data in multiple tables.



There are total 3 tables :



1 : Sliders



2 : SliderItems



3 : SliderSelectedItems



When I create/update Slider, list of selected slider items displays in TAB like this



enter image description here



I can see which slides are assigned to a slider.
Also when I check/uncheck the slider items, record is added to SliderSelectedItems table, which stores only item_id and slider_id.



Now, When I create/update slider items, I can choose multiple slider in which this item will be displayed. Like this,



enter image description here



When I save this, record is added to SliderSelectedItems



To add records in SliderSelectedItems, I have created extensionpool Handlers



<type name="MagentoFrameworkEntityManagerOperationExtensionPool">
<arguments>
<argument name="extensionActions" xsi:type="array">
<item name="MageSparkOwlCarouselSliderApiDataSliderInterface" xsi:type="array">
<item name="read" xsi:type="array">
<item name="sliderReader" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationReadHandler</item>
<item name="sliderItemReader" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationReadHandler</item>
</item>
<item name="create" xsi:type="array">
<item name="sliderCreator" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationSaveHandler</item>
<item name="sliderItemCreator" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationSaveHandler</item>
</item>
<item name="update" xsi:type="array">
<item name="sliderUpdater" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationSaveHandler</item>
<item name="sliderItemUpdater" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationSaveHandler</item>
</item>
</item>
</argument>
</arguments>
</type>


Now, when I am saving the slider, it works fine.
But when I save the slider item, SAVE HANDLER of SLIDER is called.
It conflicts my slider item save/read handler.



I am confused, any help would be appriciated.
Thank you.










share|improve this question









New contributor




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



























    2















    I am creating extensionpool handlers to save data in multiple tables.



    There are total 3 tables :



    1 : Sliders



    2 : SliderItems



    3 : SliderSelectedItems



    When I create/update Slider, list of selected slider items displays in TAB like this



    enter image description here



    I can see which slides are assigned to a slider.
    Also when I check/uncheck the slider items, record is added to SliderSelectedItems table, which stores only item_id and slider_id.



    Now, When I create/update slider items, I can choose multiple slider in which this item will be displayed. Like this,



    enter image description here



    When I save this, record is added to SliderSelectedItems



    To add records in SliderSelectedItems, I have created extensionpool Handlers



    <type name="MagentoFrameworkEntityManagerOperationExtensionPool">
    <arguments>
    <argument name="extensionActions" xsi:type="array">
    <item name="MageSparkOwlCarouselSliderApiDataSliderInterface" xsi:type="array">
    <item name="read" xsi:type="array">
    <item name="sliderReader" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationReadHandler</item>
    <item name="sliderItemReader" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationReadHandler</item>
    </item>
    <item name="create" xsi:type="array">
    <item name="sliderCreator" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationSaveHandler</item>
    <item name="sliderItemCreator" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationSaveHandler</item>
    </item>
    <item name="update" xsi:type="array">
    <item name="sliderUpdater" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationSaveHandler</item>
    <item name="sliderItemUpdater" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationSaveHandler</item>
    </item>
    </item>
    </argument>
    </arguments>
    </type>


    Now, when I am saving the slider, it works fine.
    But when I save the slider item, SAVE HANDLER of SLIDER is called.
    It conflicts my slider item save/read handler.



    I am confused, any help would be appriciated.
    Thank you.










    share|improve this question









    New contributor




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























      2












      2








      2








      I am creating extensionpool handlers to save data in multiple tables.



      There are total 3 tables :



      1 : Sliders



      2 : SliderItems



      3 : SliderSelectedItems



      When I create/update Slider, list of selected slider items displays in TAB like this



      enter image description here



      I can see which slides are assigned to a slider.
      Also when I check/uncheck the slider items, record is added to SliderSelectedItems table, which stores only item_id and slider_id.



      Now, When I create/update slider items, I can choose multiple slider in which this item will be displayed. Like this,



      enter image description here



      When I save this, record is added to SliderSelectedItems



      To add records in SliderSelectedItems, I have created extensionpool Handlers



      <type name="MagentoFrameworkEntityManagerOperationExtensionPool">
      <arguments>
      <argument name="extensionActions" xsi:type="array">
      <item name="MageSparkOwlCarouselSliderApiDataSliderInterface" xsi:type="array">
      <item name="read" xsi:type="array">
      <item name="sliderReader" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationReadHandler</item>
      <item name="sliderItemReader" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationReadHandler</item>
      </item>
      <item name="create" xsi:type="array">
      <item name="sliderCreator" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationSaveHandler</item>
      <item name="sliderItemCreator" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationSaveHandler</item>
      </item>
      <item name="update" xsi:type="array">
      <item name="sliderUpdater" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationSaveHandler</item>
      <item name="sliderItemUpdater" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationSaveHandler</item>
      </item>
      </item>
      </argument>
      </arguments>
      </type>


      Now, when I am saving the slider, it works fine.
      But when I save the slider item, SAVE HANDLER of SLIDER is called.
      It conflicts my slider item save/read handler.



      I am confused, any help would be appriciated.
      Thank you.










      share|improve this question









      New contributor




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












      I am creating extensionpool handlers to save data in multiple tables.



      There are total 3 tables :



      1 : Sliders



      2 : SliderItems



      3 : SliderSelectedItems



      When I create/update Slider, list of selected slider items displays in TAB like this



      enter image description here



      I can see which slides are assigned to a slider.
      Also when I check/uncheck the slider items, record is added to SliderSelectedItems table, which stores only item_id and slider_id.



      Now, When I create/update slider items, I can choose multiple slider in which this item will be displayed. Like this,



      enter image description here



      When I save this, record is added to SliderSelectedItems



      To add records in SliderSelectedItems, I have created extensionpool Handlers



      <type name="MagentoFrameworkEntityManagerOperationExtensionPool">
      <arguments>
      <argument name="extensionActions" xsi:type="array">
      <item name="MageSparkOwlCarouselSliderApiDataSliderInterface" xsi:type="array">
      <item name="read" xsi:type="array">
      <item name="sliderReader" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationReadHandler</item>
      <item name="sliderItemReader" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationReadHandler</item>
      </item>
      <item name="create" xsi:type="array">
      <item name="sliderCreator" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationSaveHandler</item>
      <item name="sliderItemCreator" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationSaveHandler</item>
      </item>
      <item name="update" xsi:type="array">
      <item name="sliderUpdater" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderRelationSaveHandler</item>
      <item name="sliderItemUpdater" xsi:type="string">MageSparkOwlCarouselSliderModelResourceModelSliderItemRelationSaveHandler</item>
      </item>
      </item>
      </argument>
      </arguments>
      </type>


      Now, when I am saving the slider, it works fine.
      But when I save the slider item, SAVE HANDLER of SLIDER is called.
      It conflicts my slider item save/read handler.



      I am confused, any help would be appriciated.
      Thank you.







      magento2 model save di.xml






      share|improve this question









      New contributor




      Shweta Danej 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




      Shweta Danej 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 7 mins ago









      Rizwan

      922526




      922526






      New contributor




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









      asked 24 mins ago









      Shweta DanejShweta Danej

      112




      112




      New contributor




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





      New contributor





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






      Shweta Danej 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
          });


          }
          });






          Shweta Danej 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%2f270405%2fdi-xml-extensionpool-create-read-handlers-conflicts%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








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










          draft saved

          draft discarded


















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













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












          Shweta Danej 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%2f270405%2fdi-xml-extensionpool-create-read-handlers-conflicts%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

          What other Star Trek series did the main TNG cast show up in?

          Berlina muro

          Berlina aerponto