added exception for wrong repository fetch function
fixed compatibility with symfony 2.0.x