doctrine-extensions / DoctrineExtensions

Doctrine2 behavioral extensions, Translatable, Sluggable, Tree-NestedSet, Timestampable, Loggable, Sortable
MIT License
4.03k stars 1.27k forks source link

Error for symfony v7 #2794

Closed featuriz closed 5 months ago

featuriz commented 5 months ago

There is a bug in src/Timestampable/Mapping/Event/Adapter/ORM.php on line 35

return $converter->convertToPHPValue($this->getRawDateValue($mapping), $platform);

$this->getRawDateValue($mapping) Expected type 'array'. Found 'Doctrine\ORM\Mapping\FieldMapping'

featuriz commented 5 months ago

Solution: https://github.com/featuriz/DoctrineExtensions/commit/8e7135195984b6d150f4142df408046e1070c37e

mbabker commented 5 months ago

This has nothing to do with Symfony 7.

You are trying to use ORM 3.x which this package is not yet compatible with. Please downgrade to ORM 2.x.

featuriz commented 5 months ago

Yes @mbabker . I have found and mentioned the file that causing the problem. I request the maintainer to update ORM (upcoming). I'm testing on this. Not using in production (up to now).

mbabker commented 5 months ago

I just looked at some old PRs today and this particular compat issue is fixed in this package's 3.15 release via #2765, so this issue can be closed out. There are still some other things to fix, but this specific item isn't one of them.

featuriz commented 5 months ago

Okay @mbabker I'm closing this