We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If i have many-to-many relation, such Task and Tag and one task has two tags
task.tag.add(tag1) task.tag.add(tag2);
What is the right way to get task with related tags?
Is it right ? Task.all().list(function(tasks){ var task = task[0]; task.tag.list(function(tags){ task.tagsData = tags; }) })
Thanks for answer.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If i have many-to-many relation, such Task and Tag
and one task has two tags
task.tag.add(tag1)
task.tag.add(tag2);
What is the right way to get task with related tags?
Is it right ?
Task.all().list(function(tasks){
var task = task[0];
task.tag.list(function(tags){
task.tagsData = tags;
})
})
Thanks for answer.
The text was updated successfully, but these errors were encountered: