Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

francis_sebin_fernandez's avatar

How to insert data from one resource to another?

Hi

I have a Quote Model in which the customers can create a request quote for the products, Quote table has a column for status when the admin changes the status an entry should be placed in the quote_status table and also an order must be created in the order table with the data present in Quote table. Searched through the doc but didn't find any solution

any suggestions?

0 likes
2 replies
francis_sebin_fernandez's avatar

Hi, Thanks for the reply, What I'm actually looking for is when a resource update/create need to save that resource metadata in another table and actual data in its own table or in simple words data insertion in two different tables for a resource

Please or to participate in this conversation.