You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to be able to update/merge existing records using PopulateMergeMatch as described in the documentation based. I've written a simple example like follows:
I expected the Populate task to merge with the existing record on consecutive runs of the populate task but it throws a validation error:
ERROR [User Error]: Uncaught ValidationException: Can't overwrite existing member #1 with identical identifier (Email = [email protected]))
IN GET /dev/tasks/PopulateTask
Line 852 in framework/security/Member.php
The issue is that $obj = $blueprint->createObject($identifier, $data, $this->fixtures); actually writes the new object. This cant happen if the original being updated a unique index, such as Email with members. Unfortunately FixtureBlueprint is a core class.
I expected to be able to update/merge existing records using PopulateMergeMatch as described in the documentation based. I've written a simple example like follows:
_config/config.yml
I expected the Populate task to merge with the existing record on consecutive runs of the populate task but it throws a validation error:
I've posted the sample-project here https://github.com/nebucaz/sspopulate
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: