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

  • Home
  • SEARCH
  • 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 6888289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:59:36+00:00 2026-05-27T05:59:36+00:00

I looked through the file Mage/Catalog/sql/catalog_setup/install-1.6.0.0.php. The part of code: $installer = $this; /*

  • 0

I looked through the file Mage/Catalog/sql/catalog_setup/install-1.6.0.0.php.

The part of code:

$installer = $this;
/* @var $installer Mage_Catalog_Model_Resource_Setup */

$installer->startSetup();

/**
 * Create table 'catalog/product'
 */
$table = $installer->getConnection()
    ->newTable($installer->getTable('catalog/product'))
    ->addColumn('entity_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
        'identity'  => true,
        'unsigned'  => true,
        'nullable'  => false,
        'primary'   => true,
        ), 'Entity ID')

You can see here catalog_product implementation: $installer->getTable(‘catalog/product’).
But I couldn’t find this table in DB.
How does it work then? I always thought that catalog/product = catalog_product.

  • 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-27T05:59:37+00:00Added an answer on May 27, 2026 at 5:59 am

    The following function

    getTable('catalog/product')
    

    can be traced back to

    app/code/core/Mage/Core/Model/Resource.php
    

    checking the public function getTableName($modelEntity) you will see that the logic treats also resource table names:

    <catalog_resource>
                <class>Mage_Catalog_Model_Resource</class>
                <deprecatedNode>catalog_resource_eav_mysql4</deprecatedNode>
                <entities>
                    <product>
                        <table>catalog_product_entity</table>
                    </product>
    

    more resources about this:
    Magento ORM: Entity Attribute Value; Part 1 and
    Magento Setup Resources from Alan Storm

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

Sidebar

Related Questions

This is my code that I have looked through for a couple of hours.
I looked through some code and noticed that the convention was to turn pointer
I looked through the existing questions of this kind but didn't find what I
I've looked through many of the existing threads about this error, but still no
Ok.. I have looked through this site and just can't seem to find the
This is not a duplicate post. I've looked through similar questions on SO but
I've looked through the recent questions on this, but I cannot find a solution
I realise this question has been asked 100 times, but i've looked through the
I have a SQL*Loader control file that has a line something like this: FIELDS
I looked through this list of Hidden features/tricks for Eclipse? , but it doesn't

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.