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
mandango is great (I really mean it ;)) as it only query what is needed but I want to return a json representation of my collection
<?php // ... $labels = $app['mandango'] ->getRepository('Model\Label') ->createQuery() ->all() ; return new Response( json_encode($labels), 200, array('Content-Type' => 'application/json') );
$labels only contains ids of my labels, how should i do to hydrate this with all the data... do you have a clue? I havn't found anything in the doc
thx
The text was updated successfully, but these errors were encountered:
<?php //... $labels = $app['mandango'] ->getRepository('Model\Label') ->createQuery() ->all() ; array_walk($labels, function(\Model\Label &$label) { $label = $label->toArray(); });
Is this code correct ?
Sorry, something went wrong.
No branches or pull requests
mandango is great (I really mean it ;)) as it only query what is needed but I want to return a json representation of my collection
$labels only contains ids of my labels, how should i do to hydrate this with all the data... do you have a clue? I havn't found anything in the doc
thx
The text was updated successfully, but these errors were encountered: