https://github.com/typeorm/typeorm/issues/535#issuecomment-392608042