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

Get metadata key and values #53

Closed
amnan181 opened this issue Mar 17, 2020 · 11 comments
Closed

Get metadata key and values #53

amnan181 opened this issue Mar 17, 2020 · 11 comments

Comments

@amnan181
Copy link

how we can get metadata key and values?

@creecros
Copy link
Owner

creecros commented Mar 17, 2020

from where are you looking? is there context you can provide? Are you looking for the table? What exactly is it you are trying to do?

the table name is: task_has_metadata
name & value columns associated via task_id

@amnan181
Copy link
Author

Can you give me example how we can get data from task_has_metadata with task id?

@TimoStahl
Copy link
Collaborator

@amnan181
Copy link
Author

I have check this but its giving undefined taskMetadataModel

@amnan181
Copy link
Author

I want to call this in task file where task code is showing

@TimoStahl
Copy link
Collaborator

Could you share your code?

@amnan181
Copy link
Author

I am calling this function in private_task file but its giving undefined. We cannot call this function in other files?

@amnan181
Copy link
Author

task

@amnan181
Copy link
Author

here is my code

@creecros
Copy link
Owner

From a template, you must use, $this->task->....
i.e.

$metadata = $this->task->taskMetadataModel->getAll($task['id']);

@amnan181
Copy link
Author

Thank you so much sir

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

3 participants