Skip to content

Conversation

@JorgenSolli
Copy link

Allows for indexing specific attributes on classes using the CustomAttributeMap setting that was never properly/finished developed.

foreach ( $tmpNodeRowList as $nodeRow )
{
$nodeRowList[$nodeRow['node_id']] = $nodeRow;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it that code required? Also, it has nothing to do with what the pull request describes, right?

$objectAttribute->attribute('contentclass_attribute_identifier')
);
if (array_key_exists($identifierComposite, $attributeMapList)) {
return self::$singletons[$objectAttribute->attribute('id')] = new $attributeMapList[$identifierComposite]($objectAttribute);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe check if the class really exists. Not sure but trying to get an instance of a non-existing class is probably throwing a fatal error?
Is that self::$singletons used anywhere?

}
}

$customAttributeMap = $eZFindIni->variable('SolrFieldMapSettings', 'CustomAttributeMap');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code style is a bit off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants