[#2294] Compilation errors when code generator is configured with
<daos>true</daos> and <relations>false</relations>