Closed akelyasir closed 6 months ago
Hi @akelyasir, sorry for this. The documentation is not up-to-date. I will update this example and paste the updated code here.
Hi @akelyasir, use this
model User {
firstName: String
lastName: String
@getter($self.get(.firstName).presents.append(" ").append($self.get(.lastName).presents))
@setter($assign(.firstName, $split(" ").get(0).presents).assign(.lastName, $split(" ").get(1).presents))
fullName: String
}
Hi @victorteokw
I was trying to try examples from the documentation. But at some point I get an error. It gives an error in the fullName section.