Hello it's been a while since I started using Grocery Crud and I find it really very useful.
I am struggling with this problem though: I have 2 tables with 1-n relation, which are not in normal form and they look like this:
Keywords
keyID (Primary Key)
keyName
Similarities
similarityID (Primary Key)
keyID (Foreign Key)
similarName
So as an example, the Keyword with keyName Objective-C would be related with the following Similarities records:
Keywords
keyID keyName
1 Objective-C
Similarities
similarityID keyID similarName
1 1 ObjectiveC
2 1 Objective C
3 1 Objective_C
I would like to be able to display in a single table view the current "Keywords" with their "Similarities". Something like this:
keyName similarName
Objective-C ObjectiveC, Objective C, Objective_C
Ideally I want to be able to add new Similarities through "Edit" menu, but if not possible it is less important since I could just do another view for just inserting new "Similarities".
I tried the code explained in the
1-n relation example but it does not work. It does not display any info from the "
Similarities" table.