How can i get user name from a relation object

for restaurant in currentPage as! [Restaurant] {

                print("Restaurant name = \(restaurant.status)")

                self.status.append(restaurant.status!)

               self.user.append((restaurant.fromUser?.name)!)

                

                let dateString = dateFormatter.stringFromDate(restaurant.created!)

                self.date.append(dateString)

                

            }

Khoo,

When you post a support question, please describe the following:

    What you're trying to do What you have done in the code to diagnose the problem What your data table schema looks like (if it is a question related to data) Attach screenshots.
Just posting code does not help us. We're here to help, but instead a lot of time is going to just guess what you're trying to do. So if you want us to help, you need to help us help you.

Mark

Ok i get it