Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-320

allow SQL QueryBuilder to do INSERTS

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      With

      $db = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
      $qb = $db->createQueryBuilder();

      this QueryBuilder I'm able to do SELECT, UPDATE and DELETE. However, INSERT is not possible. Are there any good reasons for this?

      Attached you find a patch that until now works fine for me. I don't know, however, if there are any side effects.

        Issue Links

          Activity

          Tim Mundt created issue -
          Marco Pivetta made changes -
          Field Original Value New Value
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Won't Fix [ 2 ]
          Tim Mundt made changes -
          Resolution Won't Fix [ 2 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Steve Müller made changes -
          Link This issue is referenced by DBAL-182 [ DBAL-182 ]
          Steve Müller made changes -
          Link This issue is referenced by DBAL-599 [ DBAL-599 ]
          Steve Müller made changes -
          Link This issue relates to DBAL-636 [ DBAL-636 ]
          Steve Müller made changes -
          Assignee Benjamin Eberlei [ beberlei ] Steve Müller [ deeky666 ]
          Steve Müller made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Fix Version/s 2.5 [ 10523 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Steve Müller
              Reporter:
              Tim Mundt
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: