2020-06-14 17:16:08 +02:00
|
|
|
<?php
|
|
|
|
|
2023-04-07 20:28:14 +02:00
|
|
|
use SokoWeb\Database\Query\Modify;
|
|
|
|
use SokoWeb\Database\Query\Select;
|
|
|
|
use SokoWeb\Interfaces\Database\IResultSet;
|
2020-06-14 17:16:08 +02:00
|
|
|
|
|
|
|
$select = new Select(\Container::$dbConnection, 'users');
|
|
|
|
$select->columns(['id']);
|
|
|
|
|
|
|
|
$result = $select->execute();
|
|
|
|
|
|
|
|
while ($map = $result->fetch(IResultSet::FETCH_ASSOC)) {
|
|
|
|
$modify = new Modify(\Container::$dbConnection, 'users');
|
|
|
|
$modify->setId($map['id']);
|
|
|
|
$modify->set('active', true);
|
|
|
|
$modify->save();
|
|
|
|
}
|