This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » [5.3.0alpha1] Operator isn't...
expandshrink

[5.3.0alpha1] Operator isn't supported by Criterion RelationList

[5.3.0alpha1] Operator isn't supported by Criterion RelationList

Monday 21 July 2014 3:43:30 pm

Hi,
I am trying to fetch elements with reverse relation list by using the search service:

 
$query = new Query();        $query->criterion = new Criterion\RelationList(            // Field name            "produit_principale",            // Operator            Criterion\Operator::EQ,            // Content ID            $productNode->getContent()->contentInfo->id        );

But it throws an exception:

Operator = isn't supported by the Criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion\RelationList.

I look at the github, the RelationList criterion is no longer available ?!

Edit:

Finally I use the reverserelationlist method with a loop to check the contenttypeidentifier

Modified on Tuesday 05 August 2014 6:19:57 pm by AbdelAli Eramli

No reply yet!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from