Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8292083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:20:56+00:00 2026-06-08T13:20:56+00:00

In Mage_Core_Model_Abstract there is the getCollection method that is widely used. But, I had

  • 0

In Mage_Core_Model_Abstract there is the getCollection method that is widely used.

But, I had never looked at the getCollection method until now. I can see that all it does is call $this->getResourceCollection()

What is the point in having getCollection and why don’t everyone just use getResourceCollection instead?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:21:00+00:00Added an answer on June 8, 2026 at 1:21 pm

    As for my point of view, it just gives me more clean code for model collection retrieval, without unnecessary typing of word Resource all the time. Also if you look into Order model or Quote model, you will see that it also using simplified method name for collection retrieval of items, addresses, payments, etc.

    If it would be named getItemResourceCollection(), getAddressResourceCollection() instead of getAddressCollection() or getItemsCollection(), amount of characters you type during development is increasing. There were no explanation about why getCollection() should be used in favor getResourceCollection() while I was working in core team, but it was quite logical for me to use shorter name of method.

    At least non of these methods are marked as deprecated, so you can use them both.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running Magento CE 1.6.0. I have a unique store. I can see
As you might know, there's FedEx Web Services API in Magento. But I still
Is there a way to programmatically reopen an order in Magento that has already
The following code runs fine under Magento 1.6 but raises a Mage_Core_Exception (message: 'Cannot
I would like to rewrite the collection that is returned by Mage::getResourceModel('sales/order_collection'); My goal
Let's say I have a collection like: $products = Mage::getModel('catalog/product') ->getCollection() ... ->load(); How
I wanted to add a column to Admin Customer Grid is_onHold (there is column
I got an error in my Magento 1.5.1 installation, that I don't know how
I have a form in Magento that is displayed over the insecure URL (http)
i am writing a magento product exporter, that writes a couple of attributes into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.