Used the current siteaccess connection instead of the default connection for the generate command
On sites with multiple databases, the generate command only extracts configuration from the default database.
The ezpublish.persistence.connection
service contains the DBAL connection for the current siteaccess, and should be used instead of database_connection
. You can then change the target database for the command using the --siteaccess
option.