#1554: no new version is saved when Doctrine_Query::create()->update() is used
-----------------------------------+----------------------------------------
Reporter: tuct | Owner: jwage
Type: defect | Status: new
Priority: minor | Milestone: Unknown
Component: Versionable | Version: 1.0.2
Keywords: AuditLog dql hooks | Has_test: 1
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------+----------------------------------------
The following query does not save a new version:
{{{
Doctrine_Query::create()
->update('Artist a')
->set('a.name','?','hubsi')
->where('a.id= ?',1)
->execute();
}}}
this is because there is no preDqlUpdate hook in:
../AuditLog/Listener.php
i guess this is beause is very hard to make this working within this hook:
first we have to find all objects that are related to the update query
(where, whereIn)
then we have to insert the right data into the version table (run a batch
update after the hook, is this possible?)
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1554>
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
-~----------~----~----~----~------~----~------~--~---