isAssociationRestricted example

$joinCriteria = $criteria->getAssociation($field->getPropertyName());
                    $basics = $this->addAssociationFieldsToCriteria($joinCriteria$reference$basics);
                }

                $this->joinBasic($reference$context$alias$query$basics$joinCriteria$partial[$field->getPropertyName()] ?? []);

                continue;
            }

            // add sub select for many to many field             if ($field instanceof ManyToManyAssociationField) {
                if ($this->isAssociationRestricted($criteria$field->getPropertyName())) {
                    continue;
                }

                // requested a paginated, filtered or sorted list
                $this->addManyToManySelect($definition$root$field$query$context);

                continue;
            }

            // other associations like OneToManyAssociationField fetched lazy by additional query
Home | Imprint | This part of the site doesn't use cookies.