From 60985b5697c8d8007e15e78688be68490ebff43e Mon Sep 17 00:00:00 2001 From: pookey Date: Mon, 6 Nov 2006 18:00:35 +0000 Subject: [PATCH] renaming all DB references to Db --- lib/Doctrine/Configurable.php | 10 +++++----- lib/Doctrine/DB/EventListener.php | 8 ++++---- lib/Doctrine/DB/EventListener/Chain.php | 18 +++++++++--------- lib/Doctrine/DB/EventListener/Interface.php | 8 ++++---- lib/Doctrine/DB/Exception.php | 4 ++-- lib/Doctrine/DB/Firebird.php | 4 ++-- lib/Doctrine/DB/Informix.php | 4 ++-- lib/Doctrine/DB/LazyConnector.php | 14 +++++++------- lib/Doctrine/DB/Mssql.php | 4 ++-- lib/Doctrine/DB/Mysql.php | 4 ++-- lib/Doctrine/DB/Oracle.php | 4 ++-- lib/Doctrine/DB/Pgsql.php | 4 ++-- lib/Doctrine/DB/Profiler.php | 10 +++++----- lib/Doctrine/DB/Profiler/Query.php | 4 ++-- lib/Doctrine/DB/Sqlite.php | 4 ++-- lib/Doctrine/DB/Statement.php | 4 ++-- lib/Doctrine/{DB.php => Db.php} | 8 ++++---- .../{DBStatement.php => DbStatement.php} | 0 lib/Doctrine/Export.php | 2 +- lib/Doctrine/Lib.php | 2 +- lib/Doctrine/Manager.php | 2 +- lib/Doctrine/Record.php | 10 +++++----- 22 files changed, 66 insertions(+), 66 deletions(-) rename lib/Doctrine/{DB.php => Db.php} (91%) rename lib/Doctrine/{DBStatement.php => DbStatement.php} (100%) diff --git a/lib/Doctrine/Configurable.php b/lib/Doctrine/Configurable.php index 27e9703ac..25b1a78f4 100644 --- a/lib/Doctrine/Configurable.php +++ b/lib/Doctrine/Configurable.php @@ -142,8 +142,8 @@ abstract class Doctrine_Configurable { /** * addListener * - * @param Doctrine_DB_EventListener_Interface|Doctrine_Overloadable $listener - * @return Doctrine_DB + * @param Doctrine_Db_EventListener_Interface|Doctrine_Overloadable $listener + * @return Doctrine_Db */ public function addListener($listener, $name = null) { if( ! ($this->attributes[Doctrine::ATTR_LISTENER] instanceof Doctrine_EventListener_Chain)) @@ -156,7 +156,7 @@ abstract class Doctrine_Configurable { /** * getListener * - * @return Doctrine_DB_EventListener_Interface|Doctrine_Overloadable + * @return Doctrine_Db_EventListener_Interface|Doctrine_Overloadable */ public function getListener() { if( ! isset($this->attributes[Doctrine::ATTR_LISTENER])) { @@ -170,8 +170,8 @@ abstract class Doctrine_Configurable { /** * setListener * - * @param Doctrine_DB_EventListener_Interface|Doctrine_Overloadable $listener - * @return Doctrine_DB + * @param Doctrine_Db_EventListener_Interface|Doctrine_Overloadable $listener + * @return Doctrine_Db */ public function setListener($listener) { if( ! ($listener instanceof Doctrine_EventListener_Interface) && diff --git a/lib/Doctrine/DB/EventListener.php b/lib/Doctrine/DB/EventListener.php index 3a2390637..7800403bc 100644 --- a/lib/Doctrine/DB/EventListener.php +++ b/lib/Doctrine/DB/EventListener.php @@ -19,13 +19,13 @@ * . */ /** - * Doctrine_DB_EventListener + * Doctrine_Db_EventListener * * @author Konsta Vesterinen * @license LGPL * @package Doctrine */ -class Doctrine_DB_EventListener implements Doctrine_DB_EventListener_Interface { +class Doctrine_Db_EventListener implements Doctrine_Db_EventListener_Interface { public function onPreQuery(Doctrine_DB2 $dbh, $statement, array $args) { } public function onQuery(Doctrine_DB2 $dbh, $statement, array $args, $queryId) { } @@ -44,6 +44,6 @@ class Doctrine_DB_EventListener implements Doctrine_DB_EventListener_Interface { public function onPreBeginTransaction(Doctrine_DB2 $dbh) { } public function onBeginTransaction(Doctrine_DB2 $dbh) { } - public function onPreExecute(Doctrine_DB_Statement $stmt, array $params) { } - public function onExecute(Doctrine_DB_Statement $stmt, array $params) { } + public function onPreExecute(Doctrine_Db_Statement $stmt, array $params) { } + public function onExecute(Doctrine_Db_Statement $stmt, array $params) { } } diff --git a/lib/Doctrine/DB/EventListener/Chain.php b/lib/Doctrine/DB/EventListener/Chain.php index c50e73d99..cc23862cf 100644 --- a/lib/Doctrine/DB/EventListener/Chain.php +++ b/lib/Doctrine/DB/EventListener/Chain.php @@ -19,19 +19,19 @@ * . */ /** - * Doctrine_DB_EventListener + * Doctrine_Db_EventListener * * @author Konsta Vesterinen * @license LGPL * @package Doctrine */ -class Doctrine_DB_EventListener_Chain extends Doctrine_Access implements Doctrine_DB_EventListener_Interface { +class Doctrine_Db_EventListener_Chain extends Doctrine_Access implements Doctrine_DB_EventListener_Interface { private $listeners = array(); public function add($listener, $name = null) { - if( ! ($listener instanceof Doctrine_DB_EventListener_Interface) && + if( ! ($listener instanceof Doctrine_Db_EventListener_Interface) && ! ($listener instanceof Doctrine_Overloadable)) - throw new Doctrine_DB_Exception("Couldn't add eventlistener. EventListeners should implement either Doctrine_DB_EventListener_Interface or Doctrine_Overloadable"); + throw new Doctrine_Db_Exception("Couldn't add eventlistener. EventListeners should implement either Doctrine_DB_EventListener_Interface or Doctrine_Overloadable"); if($name === null) $this->listeners[] = $listener; @@ -41,15 +41,15 @@ class Doctrine_DB_EventListener_Chain extends Doctrine_Access implements Doctrin public function get($name) { if( ! isset($this->listeners[$name])) - throw new Doctrine_DB_Exception("Unknown listener $name"); + throw new Doctrine_Db_Exception("Unknown listener $name"); return $this->listeners[$name]; } public function set($name, $listener) { - if( ! ($listener instanceof Doctrine_DB_EventListener_Interface) && + if( ! ($listener instanceof Doctrine_Db_EventListener_Interface) && ! ($listener instanceof Doctrine_Overloadable)) - throw new Doctrine_DB_Exception("Couldn't set eventlistener. EventListeners should implement either Doctrine_DB_EventListener_Interface or Doctrine_Overloadable"); + throw new Doctrine_Db_Exception("Couldn't set eventlistener. EventListeners should implement either Doctrine_DB_EventListener_Interface or Doctrine_Overloadable"); $this->listeners[$name] = $listener; } @@ -120,12 +120,12 @@ class Doctrine_DB_EventListener_Chain extends Doctrine_Access implements Doctrin } } - public function onPreExecute(Doctrine_DB_Statement $stmt, array $params) { + public function onPreExecute(Doctrine_Db_Statement $stmt, array $params) { foreach($this->listeners as $listener) { $listener->onPreExecute($stmt, $params); } } - public function onExecute(Doctrine_DB_Statement $stmt, array $params) { + public function onExecute(Doctrine_Db_Statement $stmt, array $params) { foreach($this->listeners as $listener) { $listener->onExecute($stmt, $params); } diff --git a/lib/Doctrine/DB/EventListener/Interface.php b/lib/Doctrine/DB/EventListener/Interface.php index 64b0ae646..6c9bcd409 100644 --- a/lib/Doctrine/DB/EventListener/Interface.php +++ b/lib/Doctrine/DB/EventListener/Interface.php @@ -19,13 +19,13 @@ * . */ /** - * Doctrine_DB_EventListener + * Doctrine_Db_EventListener * * @author Konsta Vesterinen * @license LGPL * @package Doctrine */ -interface Doctrine_DB_EventListener_Interface { +interface Doctrine_Db_EventListener_Interface { public function onPreQuery(Doctrine_DB2 $dbh, $statement, array $args); public function onQuery(Doctrine_DB2 $dbh, $statement, array $args, $queryId); @@ -44,6 +44,6 @@ interface Doctrine_DB_EventListener_Interface { public function onPreBeginTransaction(Doctrine_DB2 $dbh); public function onBeginTransaction(Doctrine_DB2 $dbh); - public function onPreExecute(Doctrine_DB_Statement $stmt, array $params); - public function onExecute(Doctrine_DB_Statement $stmt, array $params); + public function onPreExecute(Doctrine_Db_Statement $stmt, array $params); + public function onExecute(Doctrine_Db_Statement $stmt, array $params); } diff --git a/lib/Doctrine/DB/Exception.php b/lib/Doctrine/DB/Exception.php index ef4004edd..ef0751c7b 100644 --- a/lib/Doctrine/DB/Exception.php +++ b/lib/Doctrine/DB/Exception.php @@ -19,10 +19,10 @@ * . */ /** - * Doctrine_DB_Exception + * Doctrine_Db_Exception * * @author Konsta Vesterinen * @license LGPL * @package Doctrine */ -class Doctrine_DB_Exception extends Doctrine_Exception { } +class Doctrine_Db_Exception extends Doctrine_Exception { } diff --git a/lib/Doctrine/DB/Firebird.php b/lib/Doctrine/DB/Firebird.php index 303708bb4..e4ba6e1a4 100644 --- a/lib/Doctrine/DB/Firebird.php +++ b/lib/Doctrine/DB/Firebird.php @@ -18,7 +18,7 @@ * and is licensed under the LGPL. For more information, see * . */ -Doctrine::autoload('Doctrine_DB'); +Doctrine::autoload('Doctrine_Db'); /** * @package Doctrine * @url http://www.phpdoctrine.com @@ -27,6 +27,6 @@ Doctrine::autoload('Doctrine_DB'); * @author Lukas Smith (PEAR MDB2 library) * @version $Id$ */ -class Doctrine_DB_Firebird extends Doctrine_DB { +class Doctrine_Db_Firebird extends Doctrine_Db { } diff --git a/lib/Doctrine/DB/Informix.php b/lib/Doctrine/DB/Informix.php index 2928df61a..080739759 100644 --- a/lib/Doctrine/DB/Informix.php +++ b/lib/Doctrine/DB/Informix.php @@ -18,7 +18,7 @@ * and is licensed under the LGPL. For more information, see * . */ -Doctrine::autoload('Doctrine_DB'); +Doctrine::autoload('Doctrine_Db'); /** * @package Doctrine * @url http://www.phpdoctrine.com @@ -27,6 +27,6 @@ Doctrine::autoload('Doctrine_DB'); * @author Lukas Smith (PEAR MDB2 library) * @version $Id$ */ -class Doctrine_DB_Informix extends Doctrine_DB { +class Doctrine_Db_Informix extends Doctrine_Db { } diff --git a/lib/Doctrine/DB/LazyConnector.php b/lib/Doctrine/DB/LazyConnector.php index 504acab5a..54ee4ab2d 100644 --- a/lib/Doctrine/DB/LazyConnector.php +++ b/lib/Doctrine/DB/LazyConnector.php @@ -19,30 +19,30 @@ * . */ /** - * Doctrine_DB_LazyConnector + * Doctrine_Db_LazyConnector * * @author Konsta Vesterinen * @license LGPL * @package Doctrine */ -class Doctrine_DB_LazyConnector extends Doctrine_DB_EventListener { - public function onPreQuery(Doctrine_DB $dbh, array $args) { +class Doctrine_Db_LazyConnector extends Doctrine_Db_EventListener { + public function onPreQuery(Doctrine_Db $dbh, array $args) { $dbh->connect(); } - public function onPrePrepare(Doctrine_DB $dbh, array $args) { + public function onPrePrepare(Doctrine_Db $dbh, array $args) { $dbh->connect(); } - public function onPreCommit(Doctrine_DB $dbh) { + public function onPreCommit(Doctrine_Db $dbh) { $dbh->connect(); } - public function onPreRollBack(Doctrine_DB $dbh) { + public function onPreRollBack(Doctrine_Db $dbh) { $dbh->connect(); } - public function onPreBeginTransaction(Doctrine_DB $dbh) { + public function onPreBeginTransaction(Doctrine_Db $dbh) { $dbh->connect(); } } diff --git a/lib/Doctrine/DB/Mssql.php b/lib/Doctrine/DB/Mssql.php index e0c75b2a3..1f6a99447 100644 --- a/lib/Doctrine/DB/Mssql.php +++ b/lib/Doctrine/DB/Mssql.php @@ -18,7 +18,7 @@ * and is licensed under the LGPL. For more information, see * . */ -Doctrine::autoload('Doctrine_DB'); +Doctrine::autoload('Doctrine_Db'); /** * @package Doctrine * @url http://www.phpdoctrine.com @@ -27,6 +27,6 @@ Doctrine::autoload('Doctrine_DB'); * @author Lukas Smith (PEAR MDB2 library) * @version $Id$ */ -class Doctrine_DB_Mssql extends Doctrine_DB { +class Doctrine_Db_Mssql extends Doctrine_Db { } diff --git a/lib/Doctrine/DB/Mysql.php b/lib/Doctrine/DB/Mysql.php index 073d30ebc..d260d106c 100644 --- a/lib/Doctrine/DB/Mysql.php +++ b/lib/Doctrine/DB/Mysql.php @@ -18,7 +18,7 @@ * and is licensed under the LGPL. For more information, see * . */ -Doctrine::autoload('Doctrine_DB'); +Doctrine::autoload('Doctrine_Db'); /** * @package Doctrine * @url http://www.phpdoctrine.com @@ -27,6 +27,6 @@ Doctrine::autoload('Doctrine_DB'); * @author Lukas Smith (PEAR MDB2 library) * @version $Id$ */ -class Doctrine_DB_Mysql extends Doctrine_DB { +class Doctrine_Db_Mysql extends Doctrine_Db { } diff --git a/lib/Doctrine/DB/Oracle.php b/lib/Doctrine/DB/Oracle.php index 4373ffedc..9c3ef6aa5 100644 --- a/lib/Doctrine/DB/Oracle.php +++ b/lib/Doctrine/DB/Oracle.php @@ -18,7 +18,7 @@ * and is licensed under the LGPL. For more information, see * . */ -Doctrine::autoload('Doctrine_DB'); +Doctrine::autoload('Doctrine_Db'); /** * @package Doctrine * @url http://www.phpdoctrine.com @@ -27,6 +27,6 @@ Doctrine::autoload('Doctrine_DB'); * @author Lukas Smith (PEAR MDB2 library) * @version $Id$ */ -class Doctrine_DB_Oracle extends Doctrine_DB { +class Doctrine_Db_Oracle extends Doctrine_Db { } diff --git a/lib/Doctrine/DB/Pgsql.php b/lib/Doctrine/DB/Pgsql.php index 5ddcc03a1..480080a12 100644 --- a/lib/Doctrine/DB/Pgsql.php +++ b/lib/Doctrine/DB/Pgsql.php @@ -18,7 +18,7 @@ * and is licensed under the LGPL. For more information, see * . */ -Doctrine::autoload('Doctrine_DB'); +Doctrine::autoload('Doctrine_Db'); /** * @package Doctrine * @url http://www.phpdoctrine.com @@ -27,6 +27,6 @@ Doctrine::autoload('Doctrine_DB'); * @author Lukas Smith (PEAR MDB2 library) * @version $Id$ */ -class Doctrine_DB_Pgsql extends Doctrine_DB { +class Doctrine_Db_Pgsql extends Doctrine_Db { } diff --git a/lib/Doctrine/DB/Profiler.php b/lib/Doctrine/DB/Profiler.php index ded5bef70..fc27e42cc 100644 --- a/lib/Doctrine/DB/Profiler.php +++ b/lib/Doctrine/DB/Profiler.php @@ -19,13 +19,13 @@ * . */ /** - * Doctrine_DB_Profiler + * Doctrine_Db_Profiler * * @author Konsta Vesterinen * @license LGPL * @package Doctrine */ -class Doctrine_DB_Profiler extends Doctrine_DB_EventListener { +class Doctrine_Db_Profiler extends Doctrine_Db_EventListener { public function onPreQuery(Doctrine_DB2 $dbh, $statement, array $args) { $this->queryStart($statement); } @@ -49,10 +49,10 @@ class Doctrine_DB_Profiler extends Doctrine_DB_EventListener { public function onPreBeginTransaction(Doctrine_DB2 $dbh) { } public function onBeginTransaction(Doctrine_DB2 $dbh) { } - public function onPreExecute(Doctrine_DB_Statement $stmt, array $params) { + public function onPreExecute(Doctrine_Db_Statement $stmt, array $params) { $this->queryStart($stmt->getQuery(), $stmt->getQuerySequence()); } - public function onExecute(Doctrine_DB_Statement $stmt, array $params) { + public function onExecute(Doctrine_Db_Statement $stmt, array $params) { $this->queryEnd($stmt->getQuerySequence()); } /** @@ -100,7 +100,7 @@ class Doctrine_DB_Profiler extends Doctrine_DB_EventListener { public function queryStart($queryText, $querySequence = -1) { $prepareTime = (isset($this->prepareTimes[$querySequence])) ? $this->prepareTimes[$querySequence] : null; - $this->_queryProfiles[] = new Doctrine_DB_Profiler_Query($queryText, $prepareTime); + $this->_queryProfiles[] = new Doctrine_Db_Profiler_Query($queryText, $prepareTime); } /** * Ends a query. Pass it the handle that was returned by queryStart(). diff --git a/lib/Doctrine/DB/Profiler/Query.php b/lib/Doctrine/DB/Profiler/Query.php index ff4dda2db..186d86723 100644 --- a/lib/Doctrine/DB/Profiler/Query.php +++ b/lib/Doctrine/DB/Profiler/Query.php @@ -20,13 +20,13 @@ */ /** - * Doctrine_DB_Profiler_Query + * Doctrine_Db_Profiler_Query * * @author Konsta Vesterinen * @license LGPL * @package Doctrine */ -class Doctrine_DB_Profiler_Query { +class Doctrine_Db_Profiler_Query { /** * @var string SQL query string or user comment, set by $query argument in constructor. */ diff --git a/lib/Doctrine/DB/Sqlite.php b/lib/Doctrine/DB/Sqlite.php index fcbfd67bd..7a2364431 100644 --- a/lib/Doctrine/DB/Sqlite.php +++ b/lib/Doctrine/DB/Sqlite.php @@ -18,7 +18,7 @@ * and is licensed under the LGPL. For more information, see * . */ -Doctrine::autoload('Doctrine_DB'); +Doctrine::autoload('Doctrine_Db'); /** * @package Doctrine * @url http://www.phpdoctrine.com @@ -27,6 +27,6 @@ Doctrine::autoload('Doctrine_DB'); * @author Lukas Smith (PEAR MDB2 library) * @version $Id$ */ -class Doctrine_DB_Sqlite extends Doctrine_DB { +class Doctrine_Db_Sqlite extends Doctrine_Db { } diff --git a/lib/Doctrine/DB/Statement.php b/lib/Doctrine/DB/Statement.php index 417c2b369..7322c5aeb 100644 --- a/lib/Doctrine/DB/Statement.php +++ b/lib/Doctrine/DB/Statement.php @@ -19,13 +19,13 @@ * . */ /** - * Doctrine_DB_Statement + * Doctrine_Db_Statement * * @author Konsta Vesterinen * @license LGPL * @package Doctrine */ -class Doctrine_DB_Statement extends PDOStatement { +class Doctrine_Db_Statement extends PDOStatement { protected $dbh; protected $querySequence; diff --git a/lib/Doctrine/DB.php b/lib/Doctrine/Db.php similarity index 91% rename from lib/Doctrine/DB.php rename to lib/Doctrine/Db.php index ca3505068..dc27d42fb 100644 --- a/lib/Doctrine/DB.php +++ b/lib/Doctrine/Db.php @@ -18,7 +18,7 @@ * and is licensed under the LGPL. For more information, see * . */ -class Doctrine_DB extends PDO implements Countable, IteratorAggregate { +class Doctrine_Db extends PDO implements Countable, IteratorAggregate { /** * default DSN */ @@ -41,7 +41,7 @@ class Doctrine_DB extends PDO implements Countable, IteratorAggregate { public function __construct($dsn,$username,$password) { parent::__construct($dsn,$username,$password); $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array("Doctrine_DBStatement",array($this))); + $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array("Doctrine_DbStatement",array($this))); } @@ -49,7 +49,7 @@ class Doctrine_DB extends PDO implements Countable, IteratorAggregate { static $instance; if( ! isset($instance)) { - $instance = new Doctrine_DB($dsn,$username,$password); + $instance = new Doctrine_Db($dsn,$username,$password); } return $instance; } @@ -74,7 +74,7 @@ class Doctrine_DB extends PDO implements Countable, IteratorAggregate { $e[1] = $a["user"]; $e[2] = $a["pass"]; - $instance[$md5] = new Doctrine_DB($e[0],$e[1],$e[2]); + $instance[$md5] = new Doctrine_Db($e[0],$e[1],$e[2]); } return $instance[$md5]; } diff --git a/lib/Doctrine/DBStatement.php b/lib/Doctrine/DbStatement.php similarity index 100% rename from lib/Doctrine/DBStatement.php rename to lib/Doctrine/DbStatement.php diff --git a/lib/Doctrine/Export.php b/lib/Doctrine/Export.php index 77c54e902..19089a2e6 100644 --- a/lib/Doctrine/Export.php +++ b/lib/Doctrine/Export.php @@ -32,7 +32,7 @@ class Doctrine_Export { */ private $conn; /** - * @var mixed $dbh the database handler (either PDO or Doctrine_DB object) + * @var mixed $dbh the database handler (either PDO or Doctrine_Db object) */ private $dbh; diff --git a/lib/Doctrine/Lib.php b/lib/Doctrine/Lib.php index 8163a0946..9c12b03d3 100644 --- a/lib/Doctrine/Lib.php +++ b/lib/Doctrine/Lib.php @@ -100,7 +100,7 @@ class Doctrine_Lib { $r[] = "Table in memory : ".$connection->count(); $queries = false; - if($connection->getDBH() instanceof Doctrine_DB) { + if($connection->getDBH() instanceof Doctrine_Db) { $handler = "Doctrine Database Handler"; $queries = count($connection->getDBH()->getQueries()); $sum = array_sum($connection->getDBH()->getExecTimes()); diff --git a/lib/Doctrine/Manager.php b/lib/Doctrine/Manager.php index ac9e42193..3380910d2 100644 --- a/lib/Doctrine/Manager.php +++ b/lib/Doctrine/Manager.php @@ -198,7 +198,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera public function getConnection($name) { if (!isset($this->connections[$name])) { if (isset($this->dataSourceNames[$name])) { - $conn = Doctrine_DB::getConnection($this->dataSourceNames[$name]); // Establishes the connection + $conn = Doctrine_Db::getConnection($this->dataSourceNames[$name]); // Establishes the connection $this->openConnection($conn, $name); } else { throw new Doctrine_Manager_Exception("Unknown connection: $name"); diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index 955cd2b45..1e3578370 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -1329,8 +1329,8 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite /** * addListener * - * @param Doctrine_DB_EventListener_Interface|Doctrine_Overloadable $listener - * @return Doctrine_DB + * @param Doctrine_Db_EventListener_Interface|Doctrine_Overloadable $listener + * @return Doctrine_Db */ public function addListener($listener, $name = null) { $this->_table->addListener($listener, $name = null); @@ -1339,7 +1339,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite /** * getListener * - * @return Doctrine_DB_EventListener_Interface|Doctrine_Overloadable + * @return Doctrine_Db_EventListener_Interface|Doctrine_Overloadable */ public function getListener() { return $this->_table->getListener(); @@ -1347,8 +1347,8 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite /** * setListener * - * @param Doctrine_DB_EventListener_Interface|Doctrine_Overloadable $listener - * @return Doctrine_DB + * @param Doctrine_Db_EventListener_Interface|Doctrine_Overloadable $listener + * @return Doctrine_Db */ public function setListener($listener) { $this->_table->setListener($listener);