Commit 93d6bd70 authored by Gabriel Caruso's avatar Gabriel Caruso

Whitespaces clean-up in docs

parent 00381a6b
......@@ -337,7 +337,6 @@ BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
License is not intended to restrict the license of any rights under
applicable law.
Creative Commons Notice
Creative Commons is not a party to this License, and makes no warranty
......
......@@ -8,7 +8,6 @@ Using Ubuntu 14.04 LTS:
It will generate the documentation into the build directory of the checkout.
## Theme issues
If you get a "Theme error", check if the `en/_theme` subdirectory is empty,
......
......@@ -45,7 +45,6 @@ Drivers
The drivers abstract a PHP specific database API by enforcing two
interfaces:
- ``\Doctrine\DBAL\Driver\Connection``
- ``\Doctrine\DBAL\Driver\Statement``
......@@ -85,4 +84,3 @@ generation of types between Databases and PHP. Doctrine comes
bundled with some common types but offers the ability for
developers to define custom types or extend existing ones easily.
......@@ -45,7 +45,6 @@ object is closed:
$data = $stmt->fetchAll();
$stmt->closeCursor(); // at this point the result is cached
.. warning::
When using the cache layer not all fetch modes are supported. See the code of the `ResultCacheStatement <https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Cache/ResultCacheStatement.php>`_ for details.
......@@ -117,14 +117,12 @@ database name::
``charset`` connection parameter next to ``url``, to provide a
default value in case the URL doesn't contain a charset value.
Driver
~~~~~~
The driver specifies the actual implementations of the DBAL
interfaces to use. It can be configured in one of three ways:
- ``driver``: The built-in driver implementation to use. The
following drivers are currently available:
......@@ -172,11 +170,9 @@ options recognized by each built-in driver.
When using an existing PDO instance through the ``pdo``
option, specifying connection details is obviously not necessary.
pdo\_sqlite
^^^^^^^^^^^
- ``user`` (string): Username to use when connecting to the
database.
- ``password`` (string): Password to use when connecting to the
......@@ -190,7 +186,6 @@ pdo\_sqlite
pdo\_mysql
^^^^^^^^^^
- ``user`` (string): Username to use when connecting to the
database.
- ``password`` (string): Password to use when connecting to the
......@@ -223,7 +218,6 @@ or ``/etc/drizzle/conf.d/mysql-unix-socket-protocol.cnf`` and restarting the dri
mysqli
^^^^^^
- ``user`` (string): Username to use when connecting to the
database.
- ``password`` (string): Password to use when connecting to the
......@@ -245,7 +239,6 @@ mysqli
pdo\_pgsql
^^^^^^^^^^
- ``user`` (string): Username to use when connecting to the
database.
- ``password`` (string): Password to use when connecting to the
......@@ -285,7 +278,6 @@ and ``'false'`` as strings you can change to integers by using:
pdo\_oci / oci8
^^^^^^^^^^^^^^^
- ``user`` (string): Username to use when connecting to the
database.
- ``password`` (string): Password to use when connecting to the
......@@ -318,7 +310,6 @@ pdo\_oci / oci8
pdo\_sqlsrv / sqlsrv
^^^^^^^^^^^^^^^^^^^^
- ``user`` (string): Username to use when connecting to the
database.
- ``password`` (string): Password to use when connecting to the
......@@ -330,7 +321,6 @@ pdo\_sqlsrv / sqlsrv
sqlanywhere
^^^^^^^^^^^
- ``user`` (string): Username to use when connecting to the
database.
- ``password`` (string): Password to use when connecting to the
......
......@@ -20,7 +20,6 @@ instance.
Doctrine ships with one implementation for the "PostConnect" event:
- ``Doctrine\DBAL\Event\Listeners\OracleSessionInit`` allows to
specify any number of Oracle Session related enviroment variables
that are set right after the connection is established.
......@@ -38,7 +37,6 @@ instance passed to the Connection factory:
$conn = DriverManager::getConnection($connectionParams, null, $evm);
Schema Events
-------------
......@@ -93,7 +91,6 @@ for event listeners.
It allows you to access the ``Doctrine\DBAL\Schema\Table`` instance and its columns, the used Platform and
provides a way to add additional SQL statements.
OnSchemaCreateTableColumn Event
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
......
......@@ -45,4 +45,3 @@ Now you are able to load classes that are in the
use later in this documentation to configure our first Doctrine
DBAL connection.
......@@ -35,7 +35,6 @@ passing the date to the constructor of ``DateTime``.
This is why Doctrine always wants to create the time related types
without microseconds:
- DateTime to ``TIMESTAMP(0) WITHOUT TIME ZONE``
- DateTimeTz to ``TIMESTAMP(0) WITH TIME ZONE``
- Time to ``TIME(0) WITHOUT TIME ZONE``
......
......@@ -108,4 +108,3 @@ Oracle NUMBER should be handled as integer. Doctrine 2 offers a
powerful way to abstract the database to php and back conversion,
which is described in the next section.
......@@ -25,7 +25,6 @@ available methods to learn about your database schema:
when you accept data from user- or other sources not under your
control.
listDatabases()
---------------
......@@ -234,4 +233,3 @@ table:
)
*/
......@@ -269,7 +269,6 @@ you have to sort the data in the application.
$sql = "SELECT * FROM customers";
$rows = $shardManager->queryAll($sql, $params);
Schema Operations: SchemaSynchronizer Interface
-----------------------------------------------
......
......@@ -5,7 +5,6 @@ To support a database which is not currently shipped with Doctrine
you have to implement the following interfaces and abstract
classes:
- ``\Doctrine\DBAL\Driver\Connection``
- ``\Doctrine\DBAL\Driver\Statement``
- ``\Doctrine\DBAL\Driver``
......@@ -20,7 +19,6 @@ several Abstract Unittests in the ``\Doctrine\Tests\DBAL`` package
to check if your platform behaves like all the others which is
necessary for SchemaTool support, namely:
- ``\Doctrine\Tests\DBAL\Platforms\AbstractPlatformTestCase``
- ``\Doctrine\Tests\DBAL\Functional\Schema\AbstractSchemaManagerTestCase``
......
......@@ -174,7 +174,6 @@ you can disable auto-commit mode with ``setAutoCommit(false)``.
// still transactional
.. note::
Changing auto-commit mode during an active transaction, implicitly
......@@ -199,7 +198,6 @@ you can disable auto-commit mode with ``setAutoCommit(false)``.
// enable auto-commit again, commits currently active transaction
$conn->setAutoCommit(true); // does not start a new transaction automatically
Committing or rolling back an active transaction will of course only
open up a new transaction automatically if the particular action causes
the transaction context of a connection to terminate.
......@@ -230,13 +228,11 @@ by this behaviour.
$conn->rollBack(); // rolls back outer transaction, and immediately starts a new one
}
To initialize a ``Doctrine\DBAL\Connection`` with auto-commit disabled,
you can also use the ``Doctrine\DBAL\Configuration`` container to modify the
default auto-commit mode via ``Doctrine\DBAL\Configuration::setAutoCommit(false)``
and pass it to a ``Doctrine\DBAL\Connection`` when instantiating.
Error handling
--------------
......@@ -255,7 +251,6 @@ A practical example is as follows:
// retry the processing
}
If you need stricter control, you can catch the concrete exceptions directly:
- ``Doctrine\DBAL\Exception\DeadlockException``: this can happen when each member
......
......@@ -872,7 +872,6 @@ method to add new database types or overwrite existing ones.
Database vendors that allow to define custom types like PostgreSql
can help to overcome this issue.
Custom Mapping Types
--------------------
......@@ -956,7 +955,6 @@ Then you override the ``convertToPhpValueSQL`` and
return 'MyFunction('.$sqlExpr.')';
}
Now we have to register this type with the Doctrine Type system and
hook it into the database platform:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment