/** * Retrieve the database connection associated with this Database * implementation. * * When this is executed on a Database implementation that isn't an * abstraction layer, a copy of the resource will be returned. * * @return mixed A database connection. * * @throws <b>AgaviDatabaseException</b> If a connection could not be * retrieved. * * @author Sean Kerr <*****@*****.**> * @since 0.9.0 */ public function getConnection() { if ($this->connection === null) { $this->connect(); } return parent::getConnection(); }