Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Doctrine ORM 3.0 #153

Open
AlexMinaev19 opened this issue Feb 20, 2024 · 1 comment
Open

Support for Doctrine ORM 3.0 #153

AlexMinaev19 opened this issue Feb 20, 2024 · 1 comment

Comments

@AlexMinaev19
Copy link

Problem

Finally, Doctrine ORM 3 has been released as well as DBAL 4.0. I've read the pinned issue with an explanation about the current support of this package. So I want to raise the following questions:

  • Is it possible to upgrade the package for the newest versions of Doctrine?
  • How hard it can be? I haven't investigated it yet, maybe somebody can explain.
  • Does it make sense to make such an upgrade?
@sukei
Copy link

sukei commented Feb 20, 2025

I'm just updating to ORM 3.2 and DBAL 4.2 and got some issues.

For example, the EntityRepository.phpstub should update the $lockMode parameter since Doctrine move from a const to an enum.

class EntityRepository implements ObjectRepository, Selectable
{
    /**
     * @param LockMode|int|null $lockMode
     * @param ?int $lockVersion
     *
     * @return ?T
     */
    public function find(mixed $id, LockMode|int|null $lockMode = null, int|null $lockVersion = null): object|null
    {
    }
}

I also got some issues with the recognition of type-alias(Doctrine\DBAL\Connection::WrapperParameterTypeArray) that is non-iterable, but I don't know yet if the plugin is responsible of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants