Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import by ID #404

Open
wants to merge 1 commit into
base: 4.0
Choose a base branch
from

Conversation

dolmit-tanel-paaro
Copy link

@dolmit-tanel-paaro dolmit-tanel-paaro commented Nov 15, 2023

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets #256

Use case

  1. Export existing objects
  2. Change some data
  3. Import modified content back into the system using ID (o_id) as primary key

Changes

  1. o_id field is included in the map, systemColumn list
    • field can be used as primary key

image
Change includes o_id in the map, systemColumn list

@dolmit-tanel-paaro dolmit-tanel-paaro changed the title Import by o_id Import by ID Nov 15, 2023
@@ -27,6 +27,7 @@ public function getClassDefinition(DataObject\ClassDefinition $class): array
$fields = $class->getFieldDefinitions();

$systemColumns = [
'o_id',
Copy link
Author

Choose a reason for hiding this comment

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

Why was o_id excluded from the list in the first place?

@dolmit-tanel-paaro dolmit-tanel-paaro force-pushed the import-by-o_id branch 3 times, most recently from 2b27e83 to a94d4c8 Compare November 15, 2023 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant