Giter VIP home page Giter VIP logo

Comments (8)

vasilvestre avatar vasilvestre commented on June 16, 2024 1

I'd love to have so much free time to provide personal support, but unfortunately it's not the case.
Also, this is probably not a bug but a misuse of the bundle.
If you can provide the offending code, I can try to help you here

So, I can now safely say that the issue was due to misuse of event listener.
EasyAdmin seems to do not call every listener, I had to refresh the entity using doctrine so it worked.
Another problem came from this context :
Entity A holds many entities (B) that are VichUploadable. When I persist entity A, I remove it but keep entities B. The doctrine events are not fired despite entities B being flushed. I guess it's also due to EasyAdmin.

Sorry for the inconvenience

from vichuploaderbundle.

garak avatar garak commented on June 16, 2024

What namer are you using?

from vichuploaderbundle.

vasilvestre avatar vasilvestre commented on June 16, 2024

What namer are you using?

Vich\UploaderBundle\Naming\SmartUniqueNamer

from vichuploaderbundle.

garak avatar garak commented on June 16, 2024

The entity is the same?

from vichuploaderbundle.

vasilvestre avatar vasilvestre commented on June 16, 2024

Same entity but different instance

from vichuploaderbundle.

garak avatar garak commented on June 16, 2024

Could you provide additional information? How the uploadable entity is related to the main one?

from vichuploaderbundle.

vasilvestre avatar vasilvestre commented on June 16, 2024

There's no relationship, it's an unmapped form. It only creates collection of my entity type which contains a VichFileType.

It try to debug event listener to dig in the vendor code but I can't really find where to hook. If you could give me a hint it would be great. (I'm available in many symfony slack with the same nickname if you wish to go faster)

from vichuploaderbundle.

garak avatar garak commented on June 16, 2024

I'd love to have so much free time to provide personal support, but unfortunately it's not the case.
Also, this is probably not a bug but a misuse of the bundle.
If you can provide the offending code, I can try to help you here

from vichuploaderbundle.

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.