using constructor for OptionsProvider fails saving DataObjectClass #16804
Replies: 1 comment
-
I missed to set the @Prefix for the Options Provider Class @mybundle\MyOptionsProvider... in ClassResolver the service is called by...
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have an custom OpotionsProvider für a DatType "select" in DataObjects. With this OptionsProvider I would like to use a Repository for getting the data to fill the options. So I set up an constructor in my OptionsProvider class and defined a service with injecting the repository as argument in my service.yaml.
Now using the OptionsProvider in the DataObject field I get an error "too few arguments" when saving the DataObject Class in
/var/www/html/www/cms/pimcore/vendor/pimcore/pimcore/models/DataObject/ClassDefinition/Helper/ClassResolver.php(33): Way\To\\MyOptionsProvider->__construct()
I do not understand why this should not be possible and my arguments are not autoinjected?
Beta Was this translation helpful? Give feedback.
All reactions