mirror of
https://github.com/dg/dibi.git
synced 2025-08-08 15:16:58 +02:00
type constants dibi::* moved to new class Type
This commit is contained in:
@@ -10,7 +10,7 @@ $conn->loadFile(__DIR__ . "/data/$config[system].sql");
|
||||
$res = $conn->query('SELECT * FROM [customers]');
|
||||
|
||||
// auto-converts this column to integer
|
||||
$res->setType('customer_id', Dibi::DATETIME, 'H:i j.n.Y');
|
||||
$res->setType('customer_id', DibiType::DATETIME, 'H:i j.n.Y');
|
||||
|
||||
Assert::equal(new DibiRow([
|
||||
'customer_id' => new DibiDateTime('1970-01-01 01:00:01'),
|
||||
|
Reference in New Issue
Block a user