Added some options to improve performance on sqlite #363
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

This pull request introduces a new Doctrine middleware to automatically tune SQLite connections for better concurrent performance in development environments. The middleware applies several PRAGMA settings to SQLite connections, and its behavior is covered by new integration tests. Configuration files are updated to enable the middleware and improve transaction handling.
SQLite Middleware and Configuration Improvements
SqlitePragmaMiddlewareinsrc/Doctrine/Middleware/SqlitePragmaMiddleware.php, which applies optimized PRAGMA directives (WAL mode, busy timeout, foreign keys, etc.) to all SQLite connections for improved concurrency and reliability.config/services.yaml) so it is automatically applied to all Doctrine connections.Doctrine Configuration Enhancements
use_savepointsinconfig/packages/doctrine.yamlto improve transaction handling, especially for nested transactions in SQLite.Testing for Middleware Behavior
SqlitePragmaMiddlewareTestintests/Integration/Doctrine/SqlitePragmaMiddlewareTest.phpto verify that the middleware applies the correct PRAGMA settings and supports concurrent writers without lock errors.IMPORTANT! Integrity fixes detected and resolved
During integration testing with the new SQLite middleware, several integrity constraint issues were detected in entity relationships (mainly missing cascading deletes).
These have been fixed by adding
onDelete="CASCADE"to the relevant associations, ensuring consistent cleanup of related entities and preventing orphaned records.