11 lines
657 B
PHP
11 lines
657 B
PHP
Doctrine_DB is a wrapper for PDO database object. Why should you consider using Doctrine_DB instead of PDO?
|
|
<br \><br \>
|
|
1. It provides efficient eventlistener architecture, hence its easy to add new aspects to existing methods like on-demand-caching
|
|
<br \><br \>
|
|
2. Doctrine_DB lazy-connects database. Creating an instance of Doctrine_DB doesn't directly connect database, hence
|
|
Doctrine_DB fits perfectly for application using for example page caching.
|
|
<br \><br \>
|
|
3. It has many short cuts for commonly used fetching methods like Doctrine_DB::fetchOne().
|
|
<br \><br \>
|
|
4. Supports PEAR-like data source names as well as PDO data source names.
|