Git Product home page Git Product logo

Comments (4)

kevinG73 avatar kevinG73 commented on July 4, 2024

Hello @rsereir ,
you can use Symfony events to do this or use data persisters .

from apiplatformtranslationbundle.

rsereir avatar rsereir commented on July 4, 2024

@kevinG73 i don't want to persist, but the bundle persist not existing translations when i try to get this

from apiplatformtranslationbundle.

kevinG73 avatar kevinG73 commented on July 4, 2024

I have an entity without any translation and i see in my Symfony profiler multiple requests to query current locale, and default locale, then if no translation, insert new translation.

The problem is i don't want to add new translation automatically.

In the dataPersister you will do the processing that suits you

from apiplatformtranslationbundle.

rsereir avatar rsereir commented on July 4, 2024

What ? No datapersister is trigged, it's a GET route like "/api/issues" but i have an entitymanager->persist() of IssueViewer entity in this route that cause IssueTranslation persist cause by my $issue->getTranslations()->getName() in my /api/issues response.

from apiplatformtranslationbundle.

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.