Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-114

Support bulk/batch upserts

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • laravel-4.7.0
    • Affects Version/s: None
    • Component/s: Laravel
    • None

      Bulk upserts is a native feature of MongoDB. It must be supported by the driver.

      https://laravel.com/docs/10.x/eloquent#upserts

      Current error:

      RuntimeException: This database engine does not support upserts.
      vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php:1172
      vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3507
      vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:1084
      vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:23
      vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2334
      vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2346

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: