Recevied Empty array after using getItemsByColumnValue() collection method The 2019 Stack...

What is the accessibility of a package's `Private` context variables?

Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?

Am I thawing this London Broil safely?

Protecting Dualbooting Windows from dangerous code (like rm -rf)

The difference between dialogue marks

Why is the maximum length of OpenWrt’s root password 8 characters?

Origin of "cooter" meaning "vagina"

Can a flute soloist sit?

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

Is "plugging out" electronic devices an American expression?

Why do UK politicians seemingly ignore opinion polls on Brexit?

Does the shape of a die affect the probability of a number being rolled?

Interpreting the 2019 New York Reproductive Health Act?

Why was M87 targetted for the Event Horizon Telescope instead of Sagittarius A*?

How technical should a Scrum Master be to effectively remove impediments?

Why isn't airport relocation done gradually?

Does a dangling wire really electrocute me if I'm standing in water?

Why are there uneven bright areas in this photo of black hole?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Pokemon Turn Based battle (Python)

Are there incongruent pythagorean triangles with the same perimeter and same area?

Have you ever entered Singapore using a different passport or name?

What is the meaning of the verb "bear" in this context?

When should I buy a clipper card after flying to OAK?



Recevied Empty array after using getItemsByColumnValue() collection method



The 2019 Stack Overflow Developer Survey Results Are Inmage::getModel('module/model')->getData returns an empty arraygetSelect and Join: Adding a shipment status to the Invoice Grid.phpmain.CRITICAL: Plugin class doesn't existundefined method when getting collectionMagento 2: different way get field of a collectionFactory create model is not empty Magento 2Custom Attribute is not saving data in databaseLeft join order grid collection using observer method. Magento 1.9Why Magento 2.2.3 returns empty collection?How to update record using multiple conditions in CollectionFactory magento 2





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







0















I'm trying to retrieve a row from a custom table named 'lmap_shipping_tablerate' using a specific value for a column postcode.



An empty array is returned when following line is used in my ResourceModel php file.



$postcode_rate_row = $this->collectionFactory->create()->getItemsByColumnValue('postcode', $value);
$this->logger->debug('Rates received: '.var_dump($postcode_rate_row));


Below is the directory structure



enter image description here









share





























    0















    I'm trying to retrieve a row from a custom table named 'lmap_shipping_tablerate' using a specific value for a column postcode.



    An empty array is returned when following line is used in my ResourceModel php file.



    $postcode_rate_row = $this->collectionFactory->create()->getItemsByColumnValue('postcode', $value);
    $this->logger->debug('Rates received: '.var_dump($postcode_rate_row));


    Below is the directory structure



    enter image description here









    share

























      0












      0








      0








      I'm trying to retrieve a row from a custom table named 'lmap_shipping_tablerate' using a specific value for a column postcode.



      An empty array is returned when following line is used in my ResourceModel php file.



      $postcode_rate_row = $this->collectionFactory->create()->getItemsByColumnValue('postcode', $value);
      $this->logger->debug('Rates received: '.var_dump($postcode_rate_row));


      Below is the directory structure



      enter image description here









      share














      I'm trying to retrieve a row from a custom table named 'lmap_shipping_tablerate' using a specific value for a column postcode.



      An empty array is returned when following line is used in my ResourceModel php file.



      $postcode_rate_row = $this->collectionFactory->create()->getItemsByColumnValue('postcode', $value);
      $this->logger->debug('Rates received: '.var_dump($postcode_rate_row));


      Below is the directory structure



      enter image description here







      magento2 collection resource-model factory magic-getter





      share












      share










      share



      share










      asked 8 mins ago









      Farhan SaeedFarhan Saeed

      62




      62






















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


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269646%2frecevied-empty-array-after-using-getitemsbycolumnvalue-collection-method%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
















          draft saved

          draft discarded




















































          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%2f269646%2frecevied-empty-array-after-using-getitemsbycolumnvalue-collection-method%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

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...