Problem/Motivation
When I click into the 'Salesforce' tab and try to push an entity I receive the following error:
ArgumentCountError: Too few arguments to function Drupal\salesforce_mapping\Plugin\Validation\Constraint\UniqueFieldsConstraintValidator::__construct(), 0 passed in web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php on line 31 and exactly 1 expected in Drupal\salesforce_mapping\Plugin\Validation\Constraint\UniqueFieldsConstraintValidator->__construct()
Steps to reproduce
Use salesforce mapping UI to push an entity from Drupal to salesforce.
Proposed resolution
Use ContainerInjectionInterface class.
Issue fork salesforce-3419551
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
omarlopesinoComment #3
dineshkumarbollu commentedHi @omarlopesino
using these classes will resolve the problem.
and in create method add new paramenters
Comment #5
omarlopesinoComment #6
omarlopesinoThank you @dineshkumarbollu . Indeed I've already made that solution but forgot to create the MR. Now the MR is created. Please review, thanks!
Comment #7
omarlopesinoComment #9
aaronbaumanCommitted to latest dev, thanks for the patch.