Replace calls to the deprecated Registry::getEntityNamespace

Replace calls to the deprecated Registry::getEntityNamespace with getAliasNamespace (see doctrine/DoctrineBundle@89c7e1486dcf162ef0b5848209748fcc556e1486).