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
If you have "TargetGroup" in a class definition and run the command "bin/console pimcore:build:classes" without a database running, it ends up in an missing database connection error:
As far as I know the console command should build the classes without any database interaction. We use this in a deployment pipeline where no database is available.
The class definition has calls the function \Pimcore\Model\DataObject\ClassDefinition\Data\TargetGroup::__set_state. This one uses the function $obj->configureOptions(); in line 116. That one has a DAO listing call on line 80 which forces the error.
Is it really necessary to fetch the options for the class building?
The text was updated successfully, but these errors were encountered:
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.
I'm currently also running into this issue. This affects my phpstan tests which obviously run without database and fail, because I can't generate the classes.
I now removed TargetGroups from my CustomerSegments, as I didn't use them anyways
If you have "TargetGroup" in a class definition and run the command "bin/console pimcore:build:classes" without a database running, it ends up in an missing database connection error:
As far as I know the console command should build the classes without any database interaction. We use this in a deployment pipeline where no database is available.
The class definition has calls the function
\Pimcore\Model\DataObject\ClassDefinition\Data\TargetGroup::__set_state
. This one uses the function$obj->configureOptions();
in line 116. That one has a DAO listing call on line 80 which forces the error.Is it really necessary to fetch the options for the class building?
The text was updated successfully, but these errors were encountered: