Skip to content
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

How to relationship when id value has comma #236

Open
MarzuQnx opened this issue Feb 7, 2018 · 0 comments
Open

How to relationship when id value has comma #236

MarzuQnx opened this issue Feb 7, 2018 · 0 comments

Comments

@MarzuQnx
Copy link

MarzuQnx commented Feb 7, 2018

I have two tables, categories and movies.

In movies table I have a column categories. That column consists of the categories that movie fits in. The categories are IDs separated by a comma.

`Table categories {
-id- -name-
1 Action
2 Comedy
4 Drama
5 Dance
}

Table movies {
-id- -categories- (and some more columns ofc)
1 2,4
2 1,4
4 3,5
}`

how i can i get categories in movies table showing name: $movies_module->categories

Thank you,
Sorry for the misspeled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant