mirror of
https://github.com/dg/dibi.git
synced 2025-10-21 01:36:26 +02:00
* better datetime converting in DibiResult (see http://forum.dibiphp.com/viewtopic.php?pid=2331)
* added support for Nette_Debug * renamed NObject -> Nette_Object (Nette::Object in PHP 5.3)
This commit is contained in:
@@ -15,5 +15,7 @@ $res = dibi::query('SELECT * FROM [customers]');
|
||||
|
||||
// auto-convert this column to integer
|
||||
$res->setType('customer_id', Dibi::FIELD_INTEGER);
|
||||
$res->setType('added', Dibi::FIELD_DATETIME, 'H:i j.n.Y');
|
||||
|
||||
$row = $res->fetch();
|
||||
var_dump($row);
|
||||
|
Reference in New Issue
Block a user