Example codes
Thonior opened this issue · 2 comments
Thonior commented
Hello there,
could you please add some example code for usage of at least the more used functions?
Thank you!
sadortun commented
Hi!
Have you looked in the tests there is a lot of examples there !
Thonior commented
Hi! I didn't saw the answer!
Thank you.
I checked it but was unable to find what I was looking for. I have an entity with a Point attribute and a category. And I need to search for entities with a certain category in a certain distance, but I don't know how to make it exactly
I guess I am looking for something like:
$d = $this->getDoctrine()->getRepository('Entity')->createQueryBuilder('e');
**$d->distance($originPoint,$distance);**
$d->where('e.category = :category');
But I guess is not that easy to include the function in the query builder
Thank you and regards!