Doctrine 2 - ORM

EntityManager::clear() not working as expected.