doctrine/doctrine2 — pull request #1024 by tyx (2014-04-30 14:08:09+00:00)
Title: [Persister] Remove the insertSql cache

Here is a piece of code which leads to an exception if we keep it :
https://gist.github.com/tyx/353de6d6aaf367abd6e6

Sure it is an edge case with tricks but I'm sure Doctrine does not need this kind of optimization.

My 2 cent