hello Marco you were right! there was an error in my code. really sorry to have wasted everyone's time yesterday.
May I please close this question. best regards On Tuesday, May 24, 2016 at 4:34:11 PM UTC+1, Marco Pivetta wrote: > > Seems to be related to > https://github.com/endyrjmedia/testDoctrine/blob/53161574f70c2ca00130e0016a8f0a6cd54ebae2/module/SitesAdmin/src/SitesAdmin/Controller/AdminSitesController.php#L87-L121 > > at first skim. > > I'm unable to test your application's code. You should try and reproduce > the problem (after debugging) via an integration test like the ones in > https://github.com/doctrine/doctrine2/tree/b3aa8254e480926adeb2a2df30a0b0ac8328d639/tests/Doctrine/Tests/ORM/Functional/Ticket > > > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ > > On 24 May 2016 at 17:25, 'paul kendal' via doctrine-user < > [email protected] <javascript:>> wrote: > >> >> hello Marco >> >> I am not sure how to do an integration test. i have however uploaded a >> github version of the code . it just needs to be cloned and then orm >> validation to create the entities in the database >> >> i apologise if this is the incorrect way to go about this. : >> >> https://github.com/endyrjmedia/testDoctrine >> >> >> the admin module relates to registering home pages of a site. >> >> to register a home page the url will be: >> >> http://localhost/testDoctrine/sites-url/create-site-url >> >> >> but to edit that entity you have to click below and then click edit >> >> >> >> http://localhost/testDoctrine/sites-url/list-websites >> >> >> you will note that it registers the entity perfectly well, however when >> you then try to edit that entity, it create a double entry. >> >> >> >> >> On Tuesday, May 24, 2016 at 11:11:31 AM UTC+1, Marco Pivetta wrote: >>> >>> You need some sort of unit or integration test that we can use to >>> reproduce the issue, before we can confirm that the problem is in the ORM. >>> >>> Marco Pivetta >>> >>> http://twitter.com/Ocramius >>> >>> http://ocramius.github.com/ >>> >>> On 24 May 2016 at 12:04, 'paul kendal' via doctrine-user < >>> [email protected]> wrote: >>> >>>> hi Marcho >>>> >>>> how do you mean reproducible. do you want me to load the files to >>>> github? >>>> >>>> On Tuesday, May 24, 2016 at 11:00:25 AM UTC+1, Marco Pivetta wrote: >>>>> >>>>> Any reproducible test case? >>>>> >>>>> Marco Pivetta >>>>> >>>>> http://twitter.com/Ocramius >>>>> >>>>> http://ocramius.github.com/ >>>>> >>>>> On 24 May 2016 at 11:59, 'paul kendal' via doctrine-user < >>>>> [email protected]> wrote: >>>>> >>>>>> I am using doctrine 2 Orm with zend 2 >>>>>> >>>>>> I have a problem with the ORM. >>>>>> >>>>>> Each time I update an entity and flush it, it also creates a new >>>>>> empty entry in the database. >>>>>> >>>>>> >>>>>> >>>>>> below is a copy of the object that I * flushed. * >>>>>> >>>>>> *You will note that is has an id. so there is no reason for the ORM >>>>>> to create a fresh entry into the database. * >>>>>> >>>>>> >>>>>> *object*(*SitesAdmin\Entity\SiteName*)[*716*] >>>>>> >>>>>> *protected* 'id' => int 12 >>>>>> >>>>>> *protected* 'urlSiteName' => string 'test' *(length=4)* >>>>>> >>>>>> *protected* 'siteName' => string 'test' *(length=4)* >>>>>> >>>>>> *protected* 'countryId' => string '11' *(length=2)* >>>>>> >>>>>> *protected* 'dateSubmitted' => >>>>>> >>>>>> *object*(*DateTime*)[*714*] >>>>>> >>>>>> *public* 'date' => string '2016-05-24 11:35:14' *(length=19)* >>>>>> >>>>>> *public* 'timezone_type' => int 3 >>>>>> >>>>>> *public* 'timezone' => string 'Europe/Paris' *(length=12)* >>>>>> >>>>>> *protected* 'live' => int 1 >>>>>> >>>>>> >>>>>> $this->flush >>>>>> >>>>>> >>>>>> >>>>>> please note that the flush works perfectly when i create a new >>>>>> object. its only duplicate entries when i try to update an existing >>>>>> entity >>>>>> >>>>>> -- >>>>>> 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. >>>> >>> >>> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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.
