diff --git a/core/model/DataObject.php b/core/model/DataObject.php index f9539e5b0..eef90ad7f 100755 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -3016,9 +3016,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity if($ancestorClass == 'ViewableData') break; $types = array( 'db' => (array) Object::uninherited_static($ancestorClass, 'db'), - 'has_one' => (array) Object::uninherited_static($ancestorClass, 'has_one'), - 'has_many' => (array) Object::uninherited_static($ancestorClass, 'has_many'), - 'many_many' => (array) Object::uninherited_static($ancestorClass, 'many_many') ); if($includerelations){ $types['has_one'] = (array)singleton($ancestorClass)->uninherited('has_one', true); diff --git a/dev/BulkLoader.php b/dev/BulkLoader.php index a6a24109e..082447c05 100644 --- a/dev/BulkLoader.php +++ b/dev/BulkLoader.php @@ -226,7 +226,7 @@ abstract class BulkLoader extends ViewableData { // get database columns (fieldlabels include fieldname as a key) // using $$includerelations flag as false, so that it only contain $db fields - $spec['fields'] = (array)singleton($this->objectClass)->fieldLabels($includerelations=false); + $spec['fields'] = (array)singleton($this->objectClass)->fieldLabels(false); $has_ones = singleton($this->objectClass)->has_one(); $has_manys = singleton($this->objectClass)->has_many();