When we change the table name in recordName method, ex: before the table name is "abc" and after i change the table name for the same class to "abcdef", i get a crash when the app initialize and we call that method to connect to database.
The correct behavior is the creation of first table, "abc". When i change the table name, another table need be created "abcdef" and the code will use it. I dont know why, but after the first table was created, if i change the string of recordName method, i get a crash when i call that method that initialize the database on AppDelegate.
I dont know if a reference for that table in that class is store in someplace, but something wrong happen.
I see one problem recently.
When we change the table name in recordName method, ex: before the table name is "abc" and after i change the table name for the same class to "abcdef", i get a crash when the app initialize and we call that method to connect to database.
pseudo-code:
before
product { String recordName { return 'abc'; } }
after:
product { String recordName { return 'abcdef'; } }
The correct behavior is the creation of first table, "abc". When i change the table name, another table need be created "abcdef" and the code will use it. I dont know why, but after the first table was created, if i change the string of recordName method, i get a crash when i call that method that initialize the database on AppDelegate.
I dont know if a reference for that table in that class is store in someplace, but something wrong happen.