-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Moved
Log
entity to a different namespace to handle with a di…
…fferent entity-manager and avoid flushing Log in the same transaction with other entities BREAKING CHANGE: Log namespace changed to `RZ\Roadiz\CoreBundle\Logger\Entity\Log` Make sure you update `config/packages/doctrine.yaml` with: ```yaml orm: auto_generate_proxy_classes: true default_entity_manager: default entity_managers: # Put `logger` entity manager first to select it as default for Log entity logger: naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware mappings: ## Just sharding EM to avoid having Logs in default EM ## and flushing bad entities when storing log entries. RoadizCoreLogger: is_bundle: false type: attribute dir: '%kernel.project_dir%/vendor/roadiz/core-bundle/src/Logger/Entity' prefix: 'RZ\Roadiz\CoreBundle\Logger\Entity' alias: RoadizCoreLogger default: dql: string_functions: JSON_CONTAINS: Scienta\DoctrineJsonFunctions\Query\AST\Functions\Mysql\JsonContains naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware auto_mapping: true mappings: ## Keep RoadizCoreLogger to avoid creating different migrations since we are using ## the same database for both entity managers. Just sharding EM to avoid ## having Logs in default EM and flushing bad entities when storing log entries. RoadizCoreLogger: is_bundle: false type: attribute dir: '%kernel.project_dir%/vendor/roadiz/core-bundle/src/Logger/Entity' prefix: 'RZ\Roadiz\CoreBundle\Logger\Entity' alias: RoadizCoreLogger App: is_bundle: false type: attribute dir: '%kernel.project_dir%/src/Entity' prefix: 'App\Entity' alias: App # ... ```
- Loading branch information
1 parent
bed7bb4
commit 6d2583c
Showing
67 changed files
with
226 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.