persistence icon indicating copy to clipboard operation
persistence copied to clipboard

The Doctrine Persistence project is a library that provides common abstractions for object mapper persistence.

Results 28 persistence issues
Sort by recently updated
recently updated
newest added

This is a followup of https://github.com/doctrine/dbal/issues/3838, I just want to check if maintainers see a room for improvement. TL;DR: when we check metadata for doctrine entities, there is a cache...

I'm unable to preload from opcache hits list due to the following 2 conflicts: ``` api-php | Message: Cannot declare class Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain, because the name is already in use in...

As was done in doctrine/collections, we should add support for generics using the `@psalm-template` annotations for generic classes like Repositories and Registries. We should also ensure that generics in PHPStan...

Enhancement
Help Wanted

Jira issue originally created by user @ocramius: Since PHP now supports the `::class` pseudo-constant, it is now useless to support `SomeAlias:ClassName` aliasing.

Improvement
BC Break

This came to me while reading through https://github.com/symfony/symfony-docs/issues/9878. In a few of those cases, people have the same entity managed by multiple entity managers. While I'm not sure whether that...

I've closed PR https://github.com/doctrine/persistence/pull/21 and created new one, because that PR is targeted on master. This PR fixed 2 bugs: 1. Using https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/cookbook/resolve-target-entity-listener.html with metadata cache is not working, because...

Bug

The check https://github.com/doctrine/persistence/blob/43526ae63312942e5316100bb3ed589ba1aba491/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php#L181 seems to be insufficient as a transient class may have an alias defined using `ResolveTargetEntityListener`.

The current `AbstractManagerRegistry` implementation provides abstract `getService` and `resetService` methods to allow subclasses to implement their own logic how to retrieve connection and manager services. However, with PSR-11 defining a...

Enhancement

Based on the idea from https://github.com/doctrine/common/issues/681, it'd be nice to have a set of fine-grained base exceptions defined in doctrine/persistence that implementation-agnostic consumers may rely on. Right now there's only...

Improvement

Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of jdeniau: Url: https://github.com/doctrine/common/pull/335 Message: Hi, All doctrine projects implements events....

Improvement