Closed easazade closed 1 year ago
Thanks for reporting.
I not to add an error message describing this, but to fix this you also need to annotate the editor user with either HiddenIn or ViewedIn for both user views.
added those annotations and now it works
@ViewedIn(#CompletePost, as: #ReducedUser)
@HiddenIn(#ReducedPost)
User? get editor;
Got two models, user and post each with 2 different views complete and reduced. very similar to the example There are syntax errors in generated code
here are the models
you can find generated schema file here. there are 3 lines with errors at the end I commented them
also you can find the complete code here you need to git checkout this commit though: db949bd
hint: errors will be different when I change the order of the models in the file