Giter Site home page Giter Site logo

Comments (3)

loevgaard avatar loevgaard commented on June 2, 2024

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.

stof avatar stof commented on June 2, 2024

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.

loevgaard avatar loevgaard commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.