dmytrof / models-management-bundle
Symfony ModelsManagementBundle to manage models and entities
Package info
github.com/dmytrof/ModelsManagementBundle
Type:symfony-bundle
pkg:composer/dmytrof/models-management-bundle
1.12
2026-10-28 23:25 UTC
Requires
- php: ^8.4
- doctrine/doctrine-bundle: ^3.0
- doctrine/event-manager: ^2.0
- doctrine/inflector: ^2.0
- doctrine/orm: ^3.0
- doctrine/persistence: ^3.1 || ^4.0
- gedmo/doctrine-extensions: ^3.16
- symfony/config: ^6.4 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.0 || ^8.0
- symfony/event-dispatcher: ^6.4 || ^7.0 || ^8.0
- symfony/event-dispatcher-contracts: ^3.0
- symfony/form: ^6.4 || ^7.0 || ^8.0
- symfony/framework-bundle: ^6.4 || ^7.0 || ^8.0
- symfony/http-foundation: ^6.4 || ^7.0 || ^8.0
- symfony/http-kernel: ^6.4 || ^7.0 || ^8.0
- symfony/options-resolver: ^6.4 || ^7.0 || ^8.0
- symfony/validator: ^6.4 || ^7.0 || ^8.0
- symfony/yaml: ^6.4 || ^7.0 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^11.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This bundle helps you to manage your models and entities (from DB, 3rd-party API, etc.) for your Symfony application
Requirements
- PHP 8.3 or higher
- Symfony 6.4 or higher
- Doctrine ORM 3 with DoctrineBundle 2.11+
- gedmo/doctrine-extensions 3.16+ (Timestampable and Blameable listeners are registered by the bundle)
Installation
Step 1: Install the bundle
$ composer require dmytrof/models-management-bundle
Step 2: Enable the bundle
<?php
// config/bundles.php
return [
// ...
Dmytrof\ModelsManagementBundle\DmytrofModelsManagementBundle::class => ['all' => true],
];
Upgrading to Symfony 6.4 / Doctrine ORM 3
- Mapping (Doctrine, Gedmo) and validation use PHP attributes;
doctrine/annotationsis no longer needed. - Doctrine listeners are registered with
doctrine.event_listenertags.ModelDoctrineSubscriberandModificationEventsDoctrineSubscriberno longer implementDoctrine\Common\EventSubscriber. AbstractDoctrineManager::getIterator()usesQuery::toIterable()and yields entities directly (ORM 2Query::iterate()yielded[0 => $entity]rows).
PHP 8.4+
Doctrine ORM 3 needs lazy proxies. On PHP 8.4+ enable PHP native lazy objects in your application
(symfony/var-exporter 8, which a fresh install on PHP 8.4 can pull in, no longer provides Symfony LazyGhost):
# config/packages/doctrine.yaml
doctrine:
orm:
enable_native_lazy_objects: true # PHP 8.4+
On PHP 8.3 use enable_lazy_ghost_objects: true instead.