mercredi 16 novembre 2016

laravel - most efficient way to insert an array of objects into a table using query builder

I have an array of objects: $groupedBySalesRegion that contains about 4,000 elements.

I wish to insert $groupedBySalesRegion into a table salesRegionSales, mapping object properties to fields.

I want to use querybuilder to do it. What's the most efficient way?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire