I previously wrote about switching from the mysql extension to PDO.
PDO introduces a number of convenient features beyond the mysql extension such as transactions, prepared statements, and more fetching options.
However there are still a few things that are a bit painful. This article will introduce Doctrine DBAL to help alleviate some of these pain points. Doctrine DBAL is a wrapper around PDO.
It adds a few conveniences beyond straight PDO as well as a query builder. There are a number of…