Skip to content

Commit

Permalink
Small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Dec 14, 2017
1 parent 2d423fa commit 9042721
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -123,6 +123,7 @@ You can also use Doctrine's CLI runner and all the functionality it provides if

```php
<?php
use midgard\portable\storage\connection;
require 'my_settings_file.php'; //This needs to contain the code shown above
$entityManager = connection::get_em();
```
Expand Down Expand Up @@ -175,8 +176,7 @@ Known Issues & Limitations
which entails a performance penalty. Also, some cases (like parent GUID links) are not supported yet

- Metadata simulation is somewhat imperfect in the sense that the metadata columns are accessible through the
object itself (e.g. `$topic->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

Expand Down Expand Up @@ -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`

0 comments on commit 9042721

Please sign in to comment.