* Describe the bug
I created a table in NocoBase using a database view from my PostgreSQL database. The table has a many-to-one relationship with another table. The application works correctly initially, but after restarting the app (yarn dev or npm start), I receive the following error:
“Unknown attribute “Column_ID” passed as targetKey, define this attribute on model “table_name” first.”
* Environment
-
NocoBase version: v1.3.24-beta
-
Database type and version: PostgresSQL (15)
-
OS: Windows
-
Deployment Methods: Create-nocobase-app
-
Docker image version:
-
NodeJS version:
* How To Reproduce
By restarting after creating the many-to-one relationship fields. That is., stop the service in terminal and restart it using yarn dev or npm start.
Expected behavior
After restarting the app, the many-to-one relationship should work as expected without errors.
For Now, I am manually Deleting the values of m2o fields in the fields table in the postgresSQL. and then it deletes all the m2o fields in the application and if we create the same fields with same name then the application works as expected.