Doctrine ORM is currently at version 2.5.4. You can check the upgrade path at https://github.com/doctrine/doctrine2/blob/76a5229faccf936bd7c393a3fcafc162e107f65c/UPGRADE.md
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 12 April 2016 at 14:53, Andrew Davey <[email protected]> wrote: > thanks for this Marco. > > What version is Doctrine up to now? Is it worth the pain to upgrade my app? > > On Tue, Apr 12, 2016 at 1:52 PM, Marco Pivetta <[email protected]> wrote: > >> 2.2 is unsupported, so you would have to upgrade to newer versions before >> we'd even be able to help you out on anything. >> >> I suggest unit-testing this behavior against the raw ORM (not the one you >> extended) and see if you can reproduce the bug. >> >> Marco Pivetta >> >> http://twitter.com/Ocramius >> >> http://ocramius.github.com/ >> >> On 12 April 2016 at 14:51, Andrew Davey <[email protected]> wrote: >> >>> That's exactly what i'm doing. >>> >>> the reason is that when i built this software i couldnt do "On Duplicate >>> Key Update" so i've had to implement my own method to do this. Which is why >>> i've had to update the Persist to work in a "weird" way. It's been working >>> for years and hasnt caused me the issue that i'm facing now. But the error >>> message isnt at all useful and the stacktrace isnt clearer so i have no >>> idea why it's failing. >>> >>> Does Doctrine have a more thorough log level and how can i change it? >>> >>> I'm using Doctrine 2.2 >>> >>> >>> >>> On Tue, Apr 12, 2016 at 1:29 PM, Marco Pivetta <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>> The information you provided seems insufficient to understand your >>>> problem. >>>> >>>> It sounds like you are calling `EntityManager#merge()` inside a persist >>>> call though, which is really weird/undesirable. >>>> >>>> Cheers, >>>> >>>> Marco Pivetta >>>> >>>> http://twitter.com/Ocramius >>>> >>>> http://ocramius.github.com/ >>>> >>>> On 11 April 2016 at 18:10, Andrew Davey <[email protected]> wrote: >>>> >>>>> Hi there, >>>>> >>>>> I have a weird issue and i'm not sure what is wrong and how to solve >>>>> it. >>>>> >>>>> I have extended the Entity Manager, as i needed to add some soft >>>>> delete stuff and other bits and bobs that needed to happen on each >>>>> persist. >>>>> The problem seems to occur when i try and save a class. >>>>> >>>>> I have App_Model_Product(); my application uses PHP comments to setup >>>>> the database and tables. >>>>> >>>>> When i try and save the Product i get "Entity was not found" >>>>> >>>>> The stack trace is: >>>>> >>>>> Exception Type:Doctrine\ORM\EntityNotFoundException >>>>> Message: Entity was not found. >>>>> >>>>> Trace: >>>>> #0 /vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1607): >>>>> Doctrine\ORM\UnitOfWork->doMerge(Object(App_Model_Product), Array) >>>>> #1 /vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(569): >>>>> Doctrine\ORM\UnitOfWork->merge(Object(App_Model_Product)) >>>>> #2 /lib/App/Doctrine/EntityManager.php(319): >>>>> Doctrine\ORM\EntityManager->merge(Object(App_Model_Product)) >>>>> #3 /lib/App/ServiceLayer/Doctrine/Abstract.php(54): >>>>> App_Doctrine_EntityManager->persist(Object(App_Model_Product)) >>>>> >>>>> I'm using Doctrine 2.2, PHP 5.5.9 >>>>> >>>>> This wasnt an issue earlier in the day and is now and i'm ot sure >>>>> what i changed. Why would my Entity not be found? How can i generate the >>>>> Entities or what is the issue? >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "doctrine-user" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at https://groups.google.com/group/doctrine-user. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "doctrine-user" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/doctrine-user/jDWcHLsUdag/unsubscribe >>>> . >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> To post to this group, send email to [email protected]. >>>> Visit this group at https://groups.google.com/group/doctrine-user. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "doctrine-user" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/doctrine-user. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "doctrine-user" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/doctrine-user/jDWcHLsUdag/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/doctrine-user. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
