-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Timestamble error getRawDateValue #2796
Comments
same problem here |
You are trying to use ORM 3.x which this package is not yet compatible with. Please downgrade to ORM 2.x. |
@mbabker Ok. Just tested. It works with the downgrade but why is it now defined in the standard symfony sf 7.0 installation if not working with the doctrine extensions ? |
Symfony itself is compatible with ORM 3.x, so when you set up a new app, then add the ORM, Composer will grab the latest compatible versions. Adding this library afterwards ends up creating the incompatible dependency tree (this package didn't have a high version conflict blocking ORM 3.x until the latest release, so Composer is installing an older version where that conflict doesn't exist; it would've been good to have that conflict sooner but you can't go back in time and fix this stuff). I get it's all less than optimal, and there are plenty of issues about it, but because of how this package integrates with the ORM, there's just a lot of small things that have to be fixed up to make it work and I'm not aware of if anyone is contributing to that with any sponsored time (I know all my contributions are in my free time). |
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. |
@mbabker I tried to use the 3.15 version but got errors. The errors:
|
OK, so there are a couple of things in your case.
|
Iam running against a similar problem with a fresh symfony 7.0.* installation. Can you explain to me why the conflict exsists in the first place? gedmo/doctrine-extensions should be compatible with doctrine/orm >=3.0 or am I getting it wrong here? My conflict looks like this: Thanks in advance for your help, |
You're getting it wrong here, this package is not yet compatible with |
Closing here as the package is compatible now with ORM 3 (there is no release yet, but you can test the |
Hello,
I just did a fresh installation symfony new test --version="7.0.*" --webapp of symfony (7.0) with PHP 8.3.6 and while trying to use Timestampable feature of stof/doctrine-extensions-bundle with Gedmo I got the following error after integration of the timestampable created and updated when trying to persist an entity. Any idea if this is related to some issues with version or any fix as it comes from the direct installation of symfony
Gedmo\Timestampable\Mapping\Event\Adapter\ORM::getRawDateValue(): Argument stof/StofDoctrineExtensionsBundle#1 ($mapping) must be of type array, Doctrine\ORM\Mapping\FieldMapping given, called in /vendor/gedmo/doctrine-extensions/src/Timestampable/Mapping/Event/Adapter/ORM.php on line 35
Here are the version declared via the composer.json and at composer install :
-- extract composer.json ---
"doctrine/dbal": "^3",
"doctrine/orm": "^3.1",
"stof/doctrine-extensions-bundle": "^1.10",
composer require stof/doctrine-extensions-bundle result:
Lock file operations: 5 installs, 0 updates, 0 removals
Locking behat/transliterator (v1.5.0)
Locking doctrine/annotations (2.0.1)
Locking doctrine/common (3.4.4)
Locking gedmo/doctrine-extensions (v3.14.0)
Locking stof/doctrine-extensions-bundle (v1.10.1)
The text was updated successfully, but these errors were encountered: