When creating Symfony 1.4 CLI tasks, I stumbled upon an error message:
The "default" context does not exist.
After searching some old forums, I found a solution.
Before you access any Doctrine class, you mus first bootstrap your context correctly. Here is an example: