Open MarkTro opened 3 months ago
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.
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?