-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relations dont show up in list, show and edit #18
Comments
same. did you solve the problem? In my case, I can see the logs from TypeOrm select all columns, and I checked that admin-bro gets all the instances from find() at Resource but it is just not mapped to the UI. Also, if I change the variable name as the column name in the Database, then it works correctly. For example, in my Database, there is TEACHER table and it has a column, FK_TEACHER_teacherID. In my TEACHER entity, I had a member variable teacherID which refers to the "FK_TEACHER_teacherID." At this time, foreign key does not show up in the list, but if I change the name to FK_TEACHER_teacherID, then it shows up.
|
Same problem here. It does not appear in the UI. EDIT: So @show981111's advice is correct. I had to change my variable name to be exactly the same as the column name. Previously the variable name was named |
I'm having this problem, renaming columns to use the FK names seems not ideal, especially since this example isn't explicitly naming the FKs. |
on ver 1.4.0: I followed README and defined @RelationId() on my relation entities - but i cant get any relations to show up in adminbro UI. I can edit resources and set relations - and i can see in my logs the update sql is correct, but list, show and edit do not display the existing assigned relationships - tried with @admin-bro/[email protected] as well.
The text was updated successfully, but these errors were encountered: