src/ShopBundle/objects/TCMSTableEditor/TCMSShopTableEditor_ShopArticle.class.php
protected function PrepareDataForSave($postData)
    {
        if (array_key_exists('active', $postData)) {
            if (!array_key_exists('variant_parent_id', $postData) || empty($postData['variant_parent_id'])) {
                $postData['variant_parent_is_active'] = $postData['active'];
            }
        }

        return $postData;
    }
protected function PrepareDataForSave($postData)
    {
        if (array_key_exists('active', $postData)) {
            if (!array_key_exists('variant_parent_id', $postData) || empty($postData['variant_parent_id'])) {
                $postData['variant_parent_is_active'] = $postData['active'];
            }
        }

        return $postData;
    }
protected function PrepareDataForSave ( $ postData ) { if ( array_key_exists ( 'active' , $ postData ) ) { if ( ! array_key_exists ( 'variant_parent_id' , $ postData ) || empty ( $ postData [ 'variant_parent_id' ] ) ) { $ postData [ 'variant_parent_is_active' ] = $ postData [ 'active' ] ; } } return $ postData ; }
here you can modify, clean or filter data before saving.

@var array $postData

@return array
here you can modify clean or filter data before saving .