public function saveAll($players)
    {
        $connection = Propel::getWriteConnection(PlayerTableMap::DATABASE_NAME);
        $connection->beginTransaction();

        foreach ($players as $record) {
            $this->save($record);
        }

        $connection->commit();
        PlayerTableMap::clearInstancePool();
    }
public function saveAll($players)
    {
        $connection = Propel::getWriteConnection(PlayerTableMap::DATABASE_NAME);
        $connection->beginTransaction();

        foreach ($players as $record) {
            $this->save($record);
        }

        $connection->commit();
        PlayerTableMap::clearInstancePool();
    }
public function saveAll ( $ players ) { $ connection = Propel :: getWriteConnection ( PlayerTableMap :: DATABASE_NAME ) ; $ connection -> beginTransaction ( ) ; foreach ( $ players as $ record ) { $ this -> save ( $ record ) ; } $ connection -> commit ( ) ; PlayerTableMap :: clearInstancePool ( ) ; }
Save multiple player models at the tume

@param Player[] $players

@throws PropelException
Save multiple player models at the tume