replace Customer->detail() with Customer->getDetail()