Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion guides/doctrine/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ Doctrine Configuration
DBAL Configuration
------------------

<<<<<<< HEAD:guides/doctrine/configuration.rst
.. code-block:: yaml

=======
[yml]
>>>>>>> origin/PR3:guides/en/Doctrine/Configuration.markdown
# config/config.yml
doctrine.dbal:
driver: PDOMySql
Expand Down Expand Up @@ -64,7 +68,18 @@ but you must pass it an argument with the name of the connection you want to get
ORM Configuration
-----------------

<<<<<<< HEAD:guides/doctrine/configuration.rst
.. code-block:: yaml
=======
doctrine.orm:
default_entity_manager: default
cache_driver: apc # array, apc, memcache, xcache
entity_managers:
default:
connection: default
customer:
connection: customer
>>>>>>> origin/PR3:guides/en/Doctrine/Configuration.markdown

doctrine.orm:
default_entity_manager: default
Expand Down Expand Up @@ -150,4 +165,4 @@ or options:
:drop Processes the schema and either drop the database schema of EntityManager Storage Connection or generate the SQL output.
:update Processes the schema and either update the database schema of EntityManager Storage Connection or generate the SQL output.

...
...
4 changes: 4 additions & 0 deletions guides/testing/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ to check the number of database calls, the time spent in the framework, ...
But before writing assertions, always check that the profiler is indeed
available (it is enabled by default in the ``test`` environment)::

<<<<<<< HEAD:guides/testing/recipes.rst
=======
[php]
>>>>>>> origin/PR3:guides/en/Testing/Recipes.markdown
if ($profiler = $client->getProfiler()) {
// check the number of requests
$this->assertTrue($profiler['db']->getQueryCount() < 10);
Expand Down