All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

Crud module for parent and children table

i'm created crud plugin for children and parent table. Can anyone suggest how to get the data from parent table.PLease Help me. Many thanks here are may table <?php namespace ThuyNT\Crud\...
2
votes
0answers
25 views

Magento 2 - Can I have to create API, Interface & Resource Model for relational table

I am creating a module which have three tables let's say for example table1 -------- id int(13) PRIMARY_KEY title varchar(50) table2 -------- id int(13) PRIMARY_KEY title varchar(255) table3 `...
0
votes
1answer
286 views

How to store dropdown value in database and display selected when edit item?

I am developing custom module. Other fields are saving data in database but i have issue with Dropdown field. It's not saving value in database. My code as following: $elements['target'] = $fieldset-&...
1
vote
0answers
34 views

service contract save method flow - magento 2 [duplicate]

I can able to get custom table records from database using service contract but hard to understand the save flow. di.xml <preference for="Mobi\Service\Api\RcRepositoryInterface" type="Mobi\...
5
votes
2answers
4k views

Magento 2 Custom Module Insert Data Issue

I'm using Magento 2 CE Version 2.1.0 I'm making a custom module. For developing custom module i'm taking reference of Magento CMS Module {folder path}\magento2\vendor\magento\module-cms I have below ...
1
vote
1answer
745 views

What is ->load(),->getData() in Magento and how does it work

$deal_m = Mage::getModel('dailydeals/deal')->load($deal_ids, 'deal_id'); $deal_m->getData() I can understand this above code will get the values for deal_id=$deal_ids from the deal table.But I ...
0
votes
1answer
2k views

Update table use where codition(CRUD) - Magento 2

I need to update particular field in table using CRUD operation of Magento. I have tried below for insert new record it is working $this->_cancelFactory->create()->setData(array('...
1
vote
1answer
101 views

Magento2 error when trying to create a record in db

I have the following resource model. namespace Vendor\Gift\Model\ResourceModel; class GiftInformation extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { protected function _construct(...