This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
FieldRelation Criterion¶
The FieldRelation
Search Criterion
searches for content based on the content items it has Relations to.
Arguments¶
target
- string representing the identifier of the Field containing Relationsoperator
- Operator constant (IN, EQ, GT, GTE, LT, LTE, BETWEEN)value
- array of ints representing the Relation content IDs to search for
Use of IN means the Relation needs to have one of the provided IDs, while CONTAINS implies it needs to have all provided IDs.
Limitations¶
The FieldRelation
Criterion is not available in Repository filtering.
Example¶
PHP¶
1 |
|