Skip to content

Adding a note describing the configuration of SQLite with doctrine #2196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 11, 2013
Merged

Adding a note describing the configuration of SQLite with doctrine #2196

merged 4 commits into from
Feb 11, 2013

Conversation

Sgoettschkes
Copy link
Contributor

As discussed in #1638, the doctrine configuration option for SQLite was added as a note (including the correct configuration for the driver and the encoding setting).

Q A
Doc fix? no
New docs? no
Applies to 2.0+
Fixed tickets #1638

@wouterj
Copy link
Member

wouterj commented Jan 30, 2013

Can you please add the pull request format to your PR message next time?

dbal:
driver: pdo_sqlite
path: %kernel.root_dir%/sqlite.db
charset: UTF8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also add a XML and PHP example:

<!-- app/config/config.xml -->
<doctrine:config
    driver="pdo_sqlite"
    path="%kernel.root_dir%/sqlite.db"
    charset="UTF-8"
>
    <!-- ... -->
</doctrine:config>
// app/config/config.php
$container->loadFromExtension('doctrine', array(
    'dbal' => array(
        'driver'  => 'pdo_sqlite',
        'path'    => '%kernel.root_dir%/sqlite.db',
        'charset' => 'UTF-8',
    ),
));

@Sgoettschkes
Copy link
Contributor Author

I changed the PR description. I didn't knew about this new format.

'path' => '%kernel.root_dir%/sqlite.db',
'charset' => 'UTF-8',
),
));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should put the code blocks in a configuration block:

.. configuration-block::

    .. code-block:: yml

        # ...

     .. code-block:: xml

        <!-- ... -->

    .. code-block:: php

        // ...

weaverryan added a commit that referenced this pull request Feb 11, 2013
Adding a note describing the configuration of SQLite with doctrine
@weaverryan weaverryan merged commit 63e2d7e into symfony:2.0 Feb 11, 2013
weaverryan added a commit that referenced this pull request Feb 11, 2013
@weaverryan
Copy link
Member

Thanks Sebastian and Wouter!

@Sgoettschkes Sgoettschkes deleted the issue1638 branch February 12, 2013 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants