Comments (3)
Here's the debug:container
for the timestampable in v1.7.2:
Information for Service "stof_doctrine_extensions.listener.timestampable"
=========================================================================
The Timestampable listener handles the update of dates on creation and update.
---------------- -------------------------------------------------
Option Value
---------------- -------------------------------------------------
Service ID stof_doctrine_extensions.listener.timestampable
Class Gedmo\Timestampable\TimestampableListener
Tags doctrine.event_subscriber (connection: default)
Calls setAnnotationReader
Public no
Synthetic no
Lazy no
Shared yes
Abstract no
Autowired no
Autoconfigured no
---------------- -------------------------------------------------
And here's for v1.8.0:
Information for Service "stof_doctrine_extensions.listener.timestampable"
=========================================================================
The Timestampable listener handles the update of dates on creation and update.
---------------- -------------------------------------------------------------------------
Option Value
---------------- -------------------------------------------------------------------------
Service ID stof_doctrine_extensions.listener.timestampable
Class Gedmo\Timestampable\TimestampableListener
Tags doctrine.event_listener (connection: default, event: prePersist)
doctrine.event_listener (connection: default, event: onFlush)
doctrine.event_listener (connection: default, event: loadClassMetadata)
Calls setCacheItemPool, setAnnotationReader
Public no
Synthetic no
Lazy no
Shared yes
Abstract no
Autowired no
Autoconfigured no
---------------- -------------------------------------------------------------------------
It certainly looks correct. Maybe it's an issue elsewhere. Will dig a bit more :)
from stofdoctrineextensionsbundle.
Are you using the timestampable behavior in a mapped superclass ?
If yes, this is a duplicate of #455 which is actually an effect of a known bug in the library, not a bug in the bundle.
The workaround for that bug (until it is fixed) is to make sure to configure a metadata cache for the extension that is at least as persistent than the metadata cache configured for the doctrine metadata (so either having no cache on both sides or having a persistent cache on both sides).
from stofdoctrineextensionsbundle.
Are you using the timestampable behavior in a mapped superclass ?
Yes
I will close this issue and follow the other issue instead. Thanks for your quick response and have a great summer ☀️
from stofdoctrineextensionsbundle.
Related Issues (20)
- Undefined constant Doctrine\DBAL\Types\Type::<Insert constant coin here> HOT 2
- SoftDeleted entities are not filtered/excluded from database results HOT 1
- loggable and doctrine migrations
- [SoftDeletable] How to disable on entity getter HOT 2
- Sort error when using Repository functions HOT 1
- Next release ? HOT 4
- doctrine.event_subscriber is deprecated HOT 3
- Timestampable logic no longer works on 1.8.0 HOT 6
- UnexpectedValueException: tree metadata HOT 7
- Allow the bundle to work without the annotation reader HOT 3
- Support Symfony 7, Switch doctrine suubscribers to #[AsDoctrineListener] HOT 1
- Support Symfony 7 HOT 3
- [TimeStampable] symfony/clock use instead of new DateTime HOT 3
- Timestampable in new Symfony 7 Project throws error on migration HOT 3
- Missing typed arguments in function NestedTreeRepository::__call()
- Incompatible with symfony v7.0.3 HOT 11
- Timestampable not working when persisting data in database ( enable to set dateTime to createdAt & updatedAt ) HOT 1
- How can I use Gedmo Translatable and Gedmo Loggable together? HOT 2
- Deprecation: Using ArrayAccess on Doctrine\ORM\Mapping\FieldMapping HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stofdoctrineextensionsbundle.