protected function exportRecord(AbstractRecord $record, DataDimensions $dataDimensions)
    {
        $precalculate      = $this->precalculateExportRecord($record, $dataDimensions);
        $allowedProperties = array_intersect_key($record->getProperties(), $precalculate['allowedProperties']);
        $record            = clone $record;
        $record->setProperties($allowedProperties);

        return $record;
    }
protected function exportRecord(AbstractRecord $record, DataDimensions $dataDimensions)
    {
        $precalculate      = $this->precalculateExportRecord($record, $dataDimensions);
        $allowedProperties = array_intersect_key($record->getProperties(), $precalculate['allowedProperties']);
        $record            = clone $record;
        $record->setProperties($allowedProperties);

        return $record;
    }
protected function exportRecord ( AbstractRecord $ record , DataDimensions $ dataDimensions ) { $ precalculate = $ this -> precalculateExportRecord ( $ record , $ dataDimensions ) ; $ allowedProperties = array_intersect_key ( $ record -> getProperties ( ) , $ precalculate [ 'allowedProperties' ] ) ; $ record = clone $ record ; $ record -> setProperties ( $ allowedProperties ) ; return $ record ; }
Make sure the returned record is a new instance an does only contain properties of it's
current view

@param AbstractRecord $record - multi view record !
Make sure the returned record is a new instance an does only contain properties of it s current view