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.

Reply via email to