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

Implement gallery tag #86

Open
pchalupa opened this issue Jan 14, 2021 · 3 comments · Fixed by #88
Open

Implement gallery tag #86

pchalupa opened this issue Jan 14, 2021 · 3 comments · Fixed by #88
Assignees
Labels
feature New feature or request

Comments

@pchalupa
Copy link
Contributor

I would like to add tag to gallery. Tags should be simple strings like: carousel, press, ....

@pchalupa pchalupa added the feature New feature or request label Jan 14, 2021
@pchalupa pchalupa self-assigned this Jan 18, 2021
@pchalupa pchalupa linked a pull request Jan 19, 2021 that will close this issue
@pchalupa
Copy link
Contributor Author

Add tag endpoint.

@pchalupa pchalupa modified the milestone: 0.1.0 Jan 29, 2021
@oliverstasa
Copy link
Member

You should be able to add more tags than one - in stead of tag_id (int), it sould be tag_id(array) and expected data entry sould be {1, 2, 3}

@pchalupa
Copy link
Contributor Author

pchalupa commented Feb 2, 2021

You should be able to add more tags than one - in stead of tag_id (int), it sould be tag_id(array) and expected data entry sould be {1, 2, 3}

Or we can use join table like on screenshot below. Doctrine has own implementation https://www.doctrine-project.org/projects/doctrine-orm/en/2.8/reference/association-mapping.html#one-to-many-unidirectional-with-join-table

image

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

Successfully merging a pull request may close this issue.

2 participants