silverstripe-populate
silverstripe-populate copied to clipboard
PopulateMergeMatch does not work as expected
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
Member:
test:
Email: "[email protected]"
Password: "password"
PopulateMergeMatch:
- Email
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
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.