actually, the only way to be fully safe is to escape the separator you use as Doctrine does not forbid any char in the identifier (you could have an identifier containing unicode chars)