Skip to main content

Questions tagged [resource-model]

Questions specific to Magento Resource Model Classes. These classes are the middle point between the Database and Models.

0 votes
2 answers
56 views

I have a SQL query that does what I need SELECT ipi.*, COALESCE(unique_purchases, 0) AS unique_purchases FROM mst_inventory_planner_inventory AS ipi LEFT JOIN ( SELECT product_id, COUNT(DISTINCT ...
Dramorian's user avatar
0 votes
2 answers
167 views

I'm new to Magento 2 and to this forum. I'm trying to add a newsletter subscription on the customer menu, just after the core one. For that, i created a module "ACME_Newsletter" I added a ...
jlegrand79's user avatar
2 votes
0 answers
66 views

I have a slider module which use EntityManager. I want to refactor code to use ResourceModel, but i have problem with many to many relations. With EntityManager i used EntityManager\Operation\...
Konrad's user avatar
  • 55
0 votes
1 answer
107 views

I have a custom module with named A and db tab is z ok. now question is my: How to add child table? which is already I have done with PK and FK key constrains. How to add data in created child table ...
Zahid Hussain Magento's user avatar
0 votes
1 answer
1k views

The answer linked here mentioned (in the comments more specifically) that I am supposed to be able to get the Id from the repository/resource), it also more importantly confirmed that $model->save()...
CvRChameleon's user avatar
0 votes
1 answer
486 views

I need to filter Magento 2 custom grid model collection by URL parameter. I have used this below code. protected function _initSelect() { $objectManager = \Magento\Framework\App\...
Ramesh KR's user avatar
  • 905
0 votes
1 answer
224 views

I am working on integrating a 3rd Party API into Magento. I'd like to use an Admin Grid with a Data Source that comes from a 3rd party API. So Essentially the Flow work like this... User Loads into ...
jtaylo13's user avatar
0 votes
0 answers
234 views

I have created a simple crud module that renders form with a few basic fields and saves data into database. Module is working fine and saving data correctly in the database. Issue is before rendering ...
kamlesh.bar's user avatar

15 30 50 per page
1
2 3 4 5
14