This below is my code and I set thai character in *operator *field name.
It's not work. I cannot see any values in this field but I can see value in
other fields.
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once __DIR__ . '/vendor/autoload.php';
$connectionParams = array(
'url' => 'mysql://localhost:3306/xxxx1?charset=UTF8',
'user' => 'xxxx',
'password' => 'xxxxx',
'driver' => 'mysqli',
);
$conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams);
$conn->beginTransaction();
try {
$conn->insert('iot_scene', array('name' => '1', 'operator' => 'ขหกปป'));
$conn->commit();
} catch (\Doctrine\DBAL\Exception\RetryableException $e) {
$conn->rollBack();
throw $e;
} catch (\Exception $e) {
$conn->rollBack();
throw $e;
}
?>
test >>>
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/doctrine-user/0529691f-cd27-4aa5-9433-371303126ea2n%40googlegroups.com.