Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Doctrine Generic Types Bundle

Doctrine Generic Types Bundle Laravel Package

pixelfederation/doctrine-generic-types-bundle

A Symfony bundle that integrates Doctrine generic types, enabling parameterized types such as typed collections and arrays in entities and DBAL mappings. It registers the required services and configuration so generic types work cleanly with Doctrine and Symfony.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Doctrine Generic Types Bundle
What is pixelfederation/doctrine-generic-types-bundle?
It is a Symfony bundle that integrates Doctrine generic types into Symfony applications, enabling parameterized types such as typed collections and arrays in entities and DBAL mappings. It registers the required services and configuration so those generic types resolve cleanly through Doctrine. The package is built for Symfony projects rather than Laravel applications.
How do I install pixelfederation/doctrine-generic-types-bundle?
Install it with Composer using composer require pixelfederation/doctrine-generic-types-bundle, then register the bundle in your Symfony application's bundle configuration. After registration, clear the Symfony cache and confirm that your Doctrine configuration loads without errors. Because it is a Symfony bundle, it is not installed as a Laravel service provider.
Does this bundle work with Laravel?
No, this package is a Symfony bundle and registers its services through Symfony's bundle and dependency injection system. It is not a drop-in Laravel package, and Laravel applications would need a different integration or a custom Doctrine setup. Laravel developers should look for Laravel-specific Doctrine packages or implement equivalent typed mappings without this bundle.
Which Symfony versions are supported?
The package follows Symfony bundle conventions, but the exact supported Symfony versions depend on the release you install. Check the composer.json constraints in the repository for the compatible Symfony version range before upgrading. Testing the install in a branch with your current Symfony version is the safest way to confirm compatibility.
Which Doctrine versions does this bundle require?
Doctrine generic types depend on the underlying Doctrine ORM and DBAL capabilities, so the bundle's composer.json defines the compatible Doctrine versions. Review those constraints before adding it to a project with pinned Doctrine packages. If you use an older Doctrine release, verify that generic type support is available in your version.
Do I need to configure anything after installing the bundle?
The bundle registers the necessary services and configuration automatically once it is enabled in your Symfony application. Most projects only need to install and register it, then ensure their entity or DBAL mappings use the generic type syntax the bundle expects. Clear the Symfony cache after changing bundle registration or Doctrine configuration.
How do I use typed collections in Doctrine entities with this bundle?
Define your entity property with the generic type annotation or attribute supported by Doctrine, such as a collection parameterized by the target entity class. The bundle wires the generic type support so Doctrine can interpret the parameterized type instead of treating it as a plain collection. Check the package README for the exact syntax supported by your Doctrine version.
Can I use this bundle for DBAL mappings as well as ORM entities?
The package description states that it supports generic types in entities and DBAL mappings, so it is not limited to ORM entity properties. That makes it useful when you need parameterized types at the DBAL layer as well as in Doctrine ORM entities. Confirm the exact DBAL mapping syntax in the documentation for your installed version.
How do I test that Doctrine generic types are working in my application?
After registering the bundle, create a small entity or mapping that uses a parameterized type and run Doctrine's mapping or schema validation command. A successful validation and a working query against that mapping indicate that the bundle is wired correctly. Add an integration test that loads the entity metadata so regressions are caught in CI.
Is pixelfederation/doctrine-generic-types-bundle actively maintained and safe for production?
Maintenance and production readiness depend on the specific release, its Composer constraints, and whether it is compatible with your Symfony and Doctrine versions. Review the repository's recent commits, releases, and issue activity before adopting it. Run it in a staging environment with your actual entity and DBAL mappings before using it in production.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections