N
N
nlan2014-09-25 18:09:34
symfony
nlan, 2014-09-25 18:09:34

FOSElasticaBundle how to handle query result?

Good day.
When working with FOSElasticaBundle, such a moment arose that after a request:
$result = $finder->find($query);
and passing it to a view, it is required, for example, to refer to the id of the received goods.
I do something like this
{{ result.getId }}
The situation is that a Doctrine object comes in and with such a call a request to the database occurs, which we would not like.
How to work with this object?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question