0

I am confused about magento table name defenation.

Here in magento 1 we was define in entity tag in which table name and entity was defined.

But in magento2 nothing like that .

So my question is where does it goes to find it like

$installer->getTable('helloworld')
  • you want to get Table name in Installer Script or Upgrade Script? – Abhishek Panchal Dec 1 '17 at 14:26
  • No i just want to know how it works – Pradip Garchar Dec 1 '17 at 14:54
0

In Magento 2, you dont have to define Table Name in config.xml file.

Here is the blog for setup script and creating new Table in Magento Database. Hope it will clear your confusion

http://inchoo.net/magento-2/setup-scripts-magento-2/

  • Sorry Abhishek.but still not satisfied answer.I would like to know from where magento does know that $installer->getTable('helloworld') is asking for helloworld table. – Pradip Garchar Dec 4 '17 at 6:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.