protected function load(QueryBuilder $query)
    {
        $metadata = $this->getClassMetadata();
        foreach ($metadata->getFieldMappings() as $field) {
            $fieldtype = $this->getFieldManager()->get($field['fieldtype'], $field);
            if ($fieldtype instanceof FieldTypeInterface) {
                $fieldtype->load($query, $metadata);
            }
        }
    }
protected function load(QueryBuilder $query)
    {
        $metadata = $this->getClassMetadata();
        foreach ($metadata->getFieldMappings() as $field) {
            $fieldtype = $this->getFieldManager()->get($field['fieldtype'], $field);
            if ($fieldtype instanceof FieldTypeInterface) {
                $fieldtype->load($query, $metadata);
            }
        }
    }
protected function load ( QueryBuilder $ query ) { $ metadata = $ this -> getClassMetadata ( ) ; foreach ( $ metadata -> getFieldMappings ( ) as $ field ) { $ fieldtype = $ this -> getFieldManager ( ) -> get ( $ field [ 'fieldtype' ] , $ field ) ; if ( $ fieldtype instanceof FieldTypeInterface ) { $ fieldtype -> load ( $ query , $ metadata ) ; } } }
Internal method to run load method on each field for the managed entity.

Takes a QueryBuilder instance as input

@param QueryBuilder $query
Internal method to run load method on each field for the managed entity .