#1532: Timestampable doesn't work with replace()
----------------------------+-----------------------------------------------
  Reporter:  colnector      |       Owner:  romanb               
      Type:  defect         |      Status:  new                  
  Priority:  minor          |   Milestone:  1.0.4                
 Component:  Timestampable  |     Version:  1.0.2                
Resolution:                 |    Keywords:                       
  Has_test:  0              |    Mystatus:  Pending Core Response
 Has_patch:  0              |  
----------------------------+-----------------------------------------------
Changes (by jwage):

  * owner:  jwage => romanb

Comment:

 Roman, what are your thoughts on this one? Once upon a time we wanted to
 completely remove the replace() function because of how flawed it was
 currently. Also the REPLACE INTO syntax is only supported in mysql afaik.

 In order to fix all these issues of replace() we would have to implement
 it in to the Doctrine_Connection_UnitOfWork to work the same as everything
 else. The other option is to change replace() to NEVER use the REPLACE
 INTO sql simply fetch the object from the db if it is exists, and update
 it, otherwise insert a new record.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1532#comment:2>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to