original_string: protected function saveBulk() {
          $tablemap = $this->getTableMap();
          foreach($this->list as &$model) {
              $con = Propel::getWriteConnection($tablemap::DATABASE_NAME);
              try {
                  $model->save($con);
                  $con->commit();
              } catch(\Exception $e) {
                  Logger::log($e->getMessage(), LOG_ERR, $model->toArray());
                  $con->rollBack();
              }
          }
      }
code: protected function saveBulk() {
          $tablemap = $this->getTableMap();
          foreach($this->list as &$model) {
              $con = Propel::getWriteConnection($tablemap::DATABASE_NAME);
              try {
                  $model->save($con);
                  $con->commit();
              } catch(\Exception $e) {
                  Logger::log($e->getMessage(), LOG_ERR, $model->toArray());
                  $con->rollBack();
              }
          }
      }
code_tokens: protected function saveBulk ( ) { $ tablemap = $ this -> getTableMap ( ) ; foreach ( $ this -> list as & $ model ) { $ con = Propel :: getWriteConnection ( $ tablemap :: DATABASE_NAME ) ; try { $ model -> save ( $ con ) ; $ con -> commit ( ) ; } catch ( \ Exception $ e ) { Logger :: log ( $ e -> getMessage ( ) , LOG_ERR , $ model -> toArray ( ) ) ; $ con -> rollBack ( ) ; } } }
docstring: Save the list of items
docstring_tokens: Save the list of items