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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: