August 17, 2015

Where, oh where, is that pesky Doctrine 2 PDO object…

Doctrine actually uses a base class called \Doctrine\DBAL\Driver\PDOConnection which extends the native PHP PDO class. It’s used by all PDO-based drivers as the common database connection interface.


Access to the \Doctrine\DBAL\Driver\PDOConnection instance can be gained through the Doctrine\ORM\EntityManager instance.


/* @var \Doctrine\DBAL\Driver\PDOConnection $pdo */
$pdo = $entityManager->getConnection()->getWrappedConnection();

API Docs

Add Eloquent ORM Tab to PHP Debug Bar

Using Eloquent outside of a Laravel project? – Me too!Collector Class class PHPDebugBarEloquentCollector extends \DebugBar\DataCollector\PDO\PDOCollector{ ... Continue reading

WordPress Domain Changer 2.0

Published on November 19, 2014

Setting Up LiveReload With Jekyll

Published on January 18, 2014