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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire