From 9042721b5c5b9dd0c34ffd6a9ca28a93372d92f7 Mon Sep 17 00:00:00 2001 From: flack Date: Thu, 14 Dec 2017 10:29:51 +0100 Subject: [PATCH] Small cleanups --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 798918c..f23f8ef 100644 --- a/README.md +++ b/README.md @@ -94,11 +94,11 @@ To include `midgard-portable` in your application, simply `require` it in your ` use midgard\portable\driver; use midgard\portable\storage\connection; -$db_config = array( +$db_config = [ 'driver' => 'pdo_sqlite', 'memory' => true -); -$schema_dirs = array('/path/to/my/schemas/'); +]; +$schema_dirs = ['/path/to/my/schemas/']; $var_dir = '/path/to/vardir'; $entity_namespace = ''; $dev_mode = false; @@ -123,6 +123,7 @@ You can also use Doctrine's CLI runner and all the functionality it provides if ```php metadata_deleted`). This will be changed once we drop PHP 5.3 support - by utilizing embedded objects (`Embeddable`) from Doctrine ORM 2.5. + object itself (e.g. `$topic->metadata_deleted`). This will be changed once we start utilizing embedded objects (`Embeddable`) from Doctrine ORM 2.5. ### Runtime @@ -216,9 +216,9 @@ Known Issues & Limitations - newer MySQL version will throw `SQLSTATE[22007]: Invalid datetime format` errors on converted legacy databases, you can get around them by adding: ```php -         'driverOptions' => array( +        'driverOptions' => [             1002 => "SET SESSION sql_mode='ALLOW_INVALID_DATES'" -        ), +        ], ``` - to your $db_config + to your `$db_config`