Bundle/QueryBundle/Helper/QueryHelper.php
private function isAssociationField(\ReflectionProperty $field)
    {
        $annotations = $this->reader->getPropertyAnnotations($field);
        foreach ($annotations as $key => $annotationObj) {
            if ($annotationObj instanceof OneToOne || $annotationObj instanceof OneToMany || $annotationObj instanceof ManyToOne || $annotationObj instanceof ManyToMany) {
                return true;
            }
        }

        return false;
    }
private function isAssociationField(\ReflectionProperty $field)
    {
        $annotations = $this->reader->getPropertyAnnotations($field);
        foreach ($annotations as $key => $annotationObj) {
            if ($annotationObj instanceof OneToOne || $annotationObj instanceof OneToMany || $annotationObj instanceof ManyToOne || $annotationObj instanceof ManyToMany) {
                return true;
            }
        }

        return false;
    }
private function isAssociationField ( \ ReflectionProperty $ field ) { $ annotations = $ this -> reader -> getPropertyAnnotations ( $ field ) ; foreach ( $ annotations as $ key => $ annotationObj ) { if ( $ annotationObj instanceof OneToOne || $ annotationObj instanceof OneToMany || $ annotationObj instanceof ManyToOne || $ annotationObj instanceof ManyToMany ) { return true ; } } return false ; }
Check if field is a OneToOne, OneToMany, ManyToOne or ManyToMany association.

@param \ReflectionProperty $field

@return bool
Check if field is a OneToOne OneToMany ManyToOne or ManyToMany association .