6.8 KiB
6.8 KiB
CHANGELOG
6.4
- [BC BREAK] Add argument
$buildDirtoProxyCacheWarmer::warmUp() - [BC BREAK] Add return type-hints to
EntityFactory - Deprecate
DbalLogger, use a middleware instead - Deprecate not constructing
DoctrineDataCollectorwith an instance ofDebugDataHolder - Deprecate
DoctrineDataCollector::addLogger(), use aDebugDataHolderinstead - Deprecate
ContainerAwareLoader, use dependency injection in your fixtures instead - Always pass the
Requestobject toEntityValueResolver's expression - [BC BREAK] Change argument
$lastUsedofDoctrineTokenProvider::updateToken()to acceptDateTimeInterface
6.3
- Deprecate passing Doctrine subscribers to
ContainerAwareEventManagerclass, use listeners instead - Add
AbstractSchemaListener,LockStoreSchemaListenerandPdoSessionHandlerSchemaListener - Deprecate
DoctrineDbalCacheAdapterSchemaSubscriberin favor ofDoctrineDbalCacheAdapterSchemaListener - Deprecate
MessengerTransportDoctrineSchemaSubscriberin favor ofMessengerTransportDoctrineSchemaListener - Deprecate
RememberMeTokenProviderDoctrineSchemaSubscriberin favor ofRememberMeTokenProviderDoctrineSchemaListener - Add optional parameter
$isSameDatabasetoDoctrineTokenProvider::configureSchema()
6.2
- Add
#[MapEntity]with its correspondingEntityValueResolver - Add
NAMEconstant toUlidTypeandUuidType
6.0
- Remove
DoctrineTestHelperandTestRepositoryFactory
5.4
- Add
DoctrineOpenTransactionLoggerMiddlewareto log when a transaction has been left open - Deprecate
PdoCacheAdapterDoctrineSchemaSubscriberand addDoctrineDbalCacheAdapterSchemaSubscriberinstead UniqueEntityconstraint retrieves a maximum of two entities if the default repository method is used.- Add support for the newer bundle structure to
AbstractDoctrineExtension::loadMappingInformation() - Add argument
$bundleDirtoAbstractDoctrineExtension::getMappingDriverBundleConfigDefaults() - Add argument
$bundleDirtoAbstractDoctrineExtension::getMappingResourceConfigDirectory()
5.3
- Deprecate
UserLoaderInterface::loadUserByUsername()in favor of `UserLoaderInterface::loadUserByIdentifier() - Deprecate
DoctrineTestHelperandTestRepositoryFactory - [BC BREAK] Remove
UuidV*Generatorclasses - Add
UuidGenerator - Add support for the new security-core
TokenVerifierInterfaceinDoctrineTokenProvider, fixing parallel requests handling in remember-me
5.2.0
- added support for symfony/uid as
UlidTypeandUuidTypeas Doctrine types - added
UlidGenerator,UuidV1Generator,UuidV4GeneratorandUuidV6Generator
5.0.0
- the
getMetadataDriverClass()method is abstract and must be implemented by class extendingAbstractDoctrineExtension - passing an
IdReaderto theDoctrineChoiceLoaderwhen the query cannot be optimized with single id field, throws an exception; passnullinstead - not explicitly passing an instance of
IdReadertoDoctrineChoiceLoaderwhen it can optimize single id field, will not apply any optimization DoctrineExtractornow requires anEntityManagerInterfaceon instantiation
4.4.0
- [BC BREAK] using null as
$classValidatorRegexpvalue inDoctrineLoader::__constructwill not enable auto-mapping for all classes anymore, use'{.*}'instead. - added
DoctrineClearEntityManagerWorkerSubscriber - deprecated
RegistryInterface, useDoctrine\Persistence\ManagerRegistry - added support for invokable event listeners
- added
getMetadataDriverClassmethod to deprecate class parameters in service configuration files
4.3.0
- changed guessing of DECIMAL to set the
inputoption ofNumberTypeto string - deprecated not passing an
IdReaderto theDoctrineChoiceLoaderwhen query can be optimized with a single id field - deprecated passing an
IdReaderto theDoctrineChoiceLoaderwhen entities have a composite id - added two Messenger middleware:
DoctrinePingConnectionMiddlewareandDoctrineCloseConnectionMiddleware
4.2.0
- deprecated injecting
ClassMetadataFactoryinDoctrineExtractor, an instance ofEntityManagerInterfaceshould be injected instead - added support for
simple_arraytype - the
DoctrineTransactionMiddlewareFactoryclass has been removed
4.1.0
- added support for datetime immutable types in form type guesser
4.0.0
- the first constructor argument of the
DoctrineChoiceLoaderclass must be anObjectManagerimplementation - removed the
MergeDoctrineCollectionListener::onBind()method - trying to reset a non-lazy manager service using the
ManagerRegistry::resetService()method throws an exception - removed the
DoctrineParserCacheclass
3.4.0
- added support for doctrine/dbal v2.6 types
- added cause of UniqueEntity constraint violation
- deprecated
DbalSessionHandlerandDbalSessionHandlerSchemain favor ofSymfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
3.1.0
- added "{{ value }}" message placeholder to UniqueEntityValidator
- deprecated
MergeDoctrineCollectionListener::onBindin favor ofMergeDoctrineCollectionListener::onSubmit - deprecated passing
ChoiceListFactoryInterfaceas first argument ofDoctrineChoiceLoader's constructor
3.0.0
- removed
EntityChoiceList - removed
$manager(2nd) and$class(3th) arguments ofORMQueryBuilderLoader - removed passing a query builder closure to
ORMQueryBuilderLoader - removed
loaderandpropertyoptions of theDoctrineType
2.8.0
- deprecated using the entity provider with a Doctrine repository implementing UserProviderInterface
- added UserLoaderInterface for loading users through Doctrine.
2.7.0
- added DoctrineChoiceLoader
- deprecated EntityChoiceList
- deprecated passing a query builder closure to ORMQueryBuilderLoader
- deprecated $manager and $em arguments of ORMQueryBuilderLoader
- added optional arguments $propertyAccessor and $choiceListFactory to DoctrineOrmExtension constructor
- deprecated "loader" and "property" options of DoctrineType
2.4.0
- deprecated DoctrineOrmTestCase class
2.2.0
- added an optional PropertyAccessorInterface parameter to DoctrineType, EntityType and EntityChoiceList
2.1.0
- added a default implementation of the ManagerRegistry
- added a session storage for Doctrine DBAL
- DoctrineOrmTypeGuesser now guesses "collection" for array Doctrine type
- DoctrineType now caches its choice lists in order to improve performance
- DoctrineType now uses ManagerRegistry::getManagerForClass() if the option "em" is not set
- UniqueEntity validation constraint now accepts a "repositoryMethod" option that will be used to check for uniqueness instead of the default "findBy"
- [BC BREAK] the DbalLogger::log() visibility has been changed from public to protected