mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-16 03:58:39 +00:00
fix tests
This commit is contained in:
parent
513a1df1dc
commit
1ca15ebbfa
|
|
@ -166,7 +166,7 @@ class CsvDatabaseMapper implements IODatabaseMapper
|
|||
// update data
|
||||
while (($cells = \fgetcsv($fp)) !== false) {
|
||||
$query = new Builder($this->con);
|
||||
$query->update($titles)->into($table);
|
||||
$query->update(...$titles)->into($table);
|
||||
|
||||
for ($j = 2; $j <= $columns; ++$j) {
|
||||
$query->sets((string) $titles[$j - 2], $cells[$j - 1]);
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ class SpreadsheetDatabaseMapper implements IODatabaseMapper
|
|||
$line = 2;
|
||||
while (!empty($workSheet->getCell('A' . $line)->getCalculatedValue())) {
|
||||
$query = new Builder($this->con);
|
||||
$query->update($titles)->into($table);
|
||||
$query->update(...$titles)->into($table);
|
||||
|
||||
for ($j = 2; $j <= $columns; ++$j) {
|
||||
$query->sets((string) $titles[$j - 2], $workSheet->getCell(StringUtils::intToAlphabet($j) . $line)->getCalculatedValue());
|
||||
|
|
|
|||
|
|
@ -7,13 +7,8 @@ declare(strict_types=1);
|
|||
\error_reporting(\E_ALL);
|
||||
\setlocale(\LC_ALL, 'en_US.UTF-8');
|
||||
|
||||
if (\is_file('vendor/autoload.php')) {
|
||||
include_once __DIR__ . '/vendor/autoload.php';
|
||||
} elseif (\is_file('../../vendor/autoload.php')) {
|
||||
include_once __DIR__ . '/../../vendor/autoload.php';
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/../Autoloader.php';
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
require_once __DIR__ . '/Autoloader.php';
|
||||
|
||||
use phpOMS\DataStorage\Database\DatabasePool;
|
||||
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user