You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using v2.7.3 of this library, I have a following case:
I have an entity (e.g. Book) for which some DB value (number) is calculated using DB trigger => therefore I need to refresh the entity during PostPersist event in order to have the value available further down the path (e.g. to have it indexed in the Elasticsearch)
I also have a ManyToMany Collection (e.g. Author) => for example one Author can have multiple Books and vice versa
the problem is that after doing the $em->refresh($book) within PostPersist Listener -> $authors collection is empty even though there are actual entries of course stored in the database even
Of course, I do have several 3rd party libraries (Gedmo Translatable, Blamable etc.) used which might have something to do with this.
What could be the cause of this?
The text was updated successfully, but these errors were encountered:
Using v2.7.3 of this library, I have a following case:
Book
) for which some DB value (number) is calculated using DB trigger => therefore I need to refresh the entity duringPostPersist
event in order to have the value available further down the path (e.g. to have it indexed in the Elasticsearch)Author
) => for example oneAuthor
can have multipleBooks
and vice versa$em->refresh($book)
withinPostPersist
Listener ->$authors
collection is empty even though there are actual entries of course stored in the database evenOf course, I do have several 3rd party libraries (Gedmo Translatable, Blamable etc.) used which might have something to do with this.
What could be the cause of this?
The text was updated successfully, but these errors were encountered: