mercredi 29 mai 2019

Doctrine criteria MEMBER_OF trouble

I use laravel-doctrine and try to use criteria. But when I use memberOf comparison I got an error "Unknown comparison operator: MEMBER_OF"

QueryExpressionVisitor which throws an error doesnt have "MEMBER_OF" case in SWITCH operator (walkComparison() method)

Criteria::create()->andWhere(
    Criteria::expr()->memberOf(':user', 'e.likedUsers')
);

how can I use memberOf comparison with criteria API?



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2YW2132
via IFTTT

Aucun commentaire:

Enregistrer un commentaire