original_string: private function inspectElementForVersioned(\SimpleXMLElement $element, array &$config, $meta)
      {
          foreach ($element as $mapping) {
              $mappingDoctrine = $mapping;
              /**
               * @var \SimpleXmlElement
               */
              $mapping = $mapping->children(self::GEDMO_NAMESPACE_URI);
  
              $isAssoc = $this->_isAttributeSet($mappingDoctrine, 'field');
              $field = $this->_getAttribute($mappingDoctrine, $isAssoc ? 'field' : 'name');
  
              if (isset($mapping->versioned)) {
                  if ($isAssoc && !$meta->associationMappings[$field]['isOwningSide']) {
                      throw new InvalidMappingException("Cannot version [{$field}] as it is not the owning side in object - {$meta->name}");
                  }
                  $config['versioned'][] = $field;
              }
          }
      }
code: private function inspectElementForVersioned(\SimpleXMLElement $element, array &$config, $meta)
      {
          foreach ($element as $mapping) {
              $mappingDoctrine = $mapping;
              /**
               * @var \SimpleXmlElement
               */
              $mapping = $mapping->children(self::GEDMO_NAMESPACE_URI);
  
              $isAssoc = $this->_isAttributeSet($mappingDoctrine, 'field');
              $field = $this->_getAttribute($mappingDoctrine, $isAssoc ? 'field' : 'name');
  
              if (isset($mapping->versioned)) {
                  if ($isAssoc && !$meta->associationMappings[$field]['isOwningSide']) {
                      throw new InvalidMappingException("Cannot version [{$field}] as it is not the owning side in object - {$meta->name}");
                  }
                  $config['versioned'][] = $field;
              }
          }
      }
code_tokens: private function inspectElementForVersioned ( \ SimpleXMLElement $ element , array & $ config , $ meta ) { foreach ( $ element as $ mapping ) { $ mappingDoctrine = $ mapping ; /**
               * @var \SimpleXmlElement
               */ $ mapping = $ mapping -> children ( self :: GEDMO_NAMESPACE_URI ) ; $ isAssoc = $ this -> _isAttributeSet ( $ mappingDoctrine , 'field' ) ; $ field = $ this -> _getAttribute ( $ mappingDoctrine , $ isAssoc ? 'field' : 'name' ) ; if ( isset ( $ mapping -> versioned ) ) { if ( $ isAssoc && ! $ meta -> associationMappings [ $ field ] [ 'isOwningSide' ] ) { throw new InvalidMappingException ( "Cannot version [{$field}] as it is not the owning side in object - {$meta->name}" ) ; } $ config [ 'versioned' ] [ ] = $ field ; } } }
docstring: Searches mappings on element for versioned fields.
  
  @param \SimpleXMLElement $element
  @param array             $config
  @param object            $meta
docstring_tokens: Searches mappings on element for versioned fields .