mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removed code "ad personam"
This commit is contained in:
parent
365e8021ba
commit
4bd235be8b
@ -1816,10 +1816,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
foreach($otherManyMany as $inverseComponentName => $candidateClass) {
|
||||
if($candidateClass == $class || is_subclass_of($class, $candidateClass)) {
|
||||
$parentField = ($class == $candidate) ? "ChildID" : $candidateClass . "ID";
|
||||
// HACK HACK HACK!
|
||||
if($component == 'NestedProducts') {
|
||||
$parentField = $candidateClass . "ID";
|
||||
}
|
||||
|
||||
return array($class, $candidate, $parentField, $childField,
|
||||
"{$candidate}_$inverseComponentName");
|
||||
|
Loading…
Reference in New Issue
Block a user