eZ Community » Forums » eZ Platform » SearchService: get locations with...
expandshrink

SearchService: get locations with full content object attached

SearchService: get locations with full content object attached

Thursday 21 April 2016 3:47:36 pm - 1 reply

Hi there,

I'm pretty new to Symfony2 and eZ Platform and I'm having a hard time figuring out how to get locations with full content object attached using SearchService feature.

I want some content ordered by priority. I used to use LocationPriority with findContent method. Now that it is deprecated, I try to achieve the same thing with LocationQuery and findLocations. Now I have some Location objects with ContentInfo, nice. But what I need is a full Content object with all fields in it. How can I do that? Do I need to build some another query in my loop to get full content object? Something simpler?

Thank you for your help

Modified on Thursday 21 April 2016 3:55:56 pm by Julien Huon

Thursday 28 April 2016 5:10:33 pm

Nevermind, I handled my issue with  Content Service loadContentByContentInfo method.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from