1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-09 23:56:58 +02:00

PascalCase constants

This commit is contained in:
David Grudl
2024-05-10 15:44:51 +02:00
parent 490cf143ba
commit d707b4ba0e
16 changed files with 119 additions and 70 deletions

View File

@@ -608,7 +608,7 @@ $database->query("UPDATE [:blog:items] SET [text]='Hello World'");
Dibi automatically detects the types of query columns and converts fields them to native PHP types. We can also specify the type manually. You can find the possible types in the `Dibi\Type` class.
```php
$result->setType('id', Dibi\Type::INTEGER); // id will be integer
$result->setType('id', Dibi\Type::Integer); // id will be integer
$row = $result->fetch();
is_int($row->id) // true