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 7704495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:41:36+00:00 2026-05-31T23:41:36+00:00

The following code runs fine under Magento 1.6 but raises a Mage_Core_Exception (message: ‘Cannot

  • 0

The following code runs fine under Magento 1.6 but raises a Mage_Core_Exception (message: ‘Cannot retrieve entity config: sales/Array’) when run under 1.5.0.1. What do I need to do to get this code running under Magento 1.5.0.1?

    $results = Mage::getResourceModel('sales/order_collection');
    $results->join(
        array('status_key_table' => 'order_status'), 
        'main_table.status = status_key_table.status', 
        array('status_key_table.label')
    );

Thank you,
Ben

  • 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-05-31T23:41:37+00:00Added an answer on May 31, 2026 at 11:41 pm

    If you compare the join() methods between 1.5.0.1 and 1.6.2.0:

    1.5.0.1: Mage_Core_Model_Mysql4_Collection_Abstract::join()
    public function join($table, $cond, $cols='*')
    {
        if (!isset($this->_joinedTables[$table])) {
            $this->getSelect()->join(array($table=>$this->getTable($table)), $cond, $cols);
            $this->_joinedTables[$table] = true;
        }
        return $this;
    }
    
    1.6.2.0: Mage_Core_Model_Resource_Db_Collection_Abstract::join()
    public function join($table, $cond, $cols = '*')
    {
        if (is_array($table)) {
            foreach ($table as $k => $v) {
                $alias = $k;
                $table = $v;
                break;
        ...
    

    You can see that 1.5.0.1 doesn’t support aliases. Instead, it calls $this->getTable() on the first parameter you pass in — which should be a string. So, in your case, you’ll need to pass in ‘sales/order_status’ as the first parameter.

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

Sidebar

Related Questions

The following piece of code runs fine when parallelized to 4-5 threads, but starts
I have the following code which runs fine on my computer but fails online:
I have the following code which compiles and runs fine under Visual Studio 2008
The following minimum code examples runs fine when it is terminated normally (by pressing
Why is it that the following code runs fine p (1..1000).inject(0) { |sum, i|
Does anyone have a good technical reason why the following code runs fine in
The following code runs fine in my IDE (PyScripter), however it won't run outside
i've got the following code which runs a bat file. the bat file then
I have the following jQuery code which runs when I'm clicking an option in
I have the following SQL code that runs against a Change Request database. Each

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.