#1564: Add the ability to disable the automatic deletion of versions
-----------------------------------+----------------------------------------
Reporter: cljrom | Owner: jwage
Type: enhancement | Status: new
Priority: trivial | Milestone: Unknown
Component: Versionable | Version: 1.0.3
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 1
-----------------------------------+----------------------------------------
I've recently needed the ability to turn off the automatic deletion of
version from a Versionable object for auditing purposes. Browsing the
source code, I could not find any option of doing so. I have attached a
patch which adds an additional option 'deleteVersions' to the Versionable
behavior (actually to the Doctrine/AuditLog.php class - which is created
by the Versionable template) which is true by default. Additionally in the
preDelete method of Doctrine/AuditLog/Listener.php I added an additional
check to make sure deleteVersions is true before deleting all the
versions.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1564>
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
-~----------~----~----~----~------~----~------~--~---