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();
            }
        }
    }
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();
            }
        }
    }
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 ( ) ; } } }
Save the list of items
Save the list of items