Author: jwage
Date: 2008-09-25 23:37:20 +0100 (Thu, 25 Sep 2008)
New Revision: 4980
Modified:
branches/1.0/lib/Doctrine/Import/Builder.php
Log:
[1.0] fixes #1481 Fixing missing support for cascade: [delete] option to YAML
Modified: branches/1.0/lib/Doctrine/Import/Builder.php
===================================================================
--- branches/1.0/lib/Doctrine/Import/Builder.php 2008-09-25 22:34:51 UTC
(rev 4979)
+++ branches/1.0/lib/Doctrine/Import/Builder.php 2008-09-25 22:37:20 UTC
(rev 4980)
@@ -475,6 +475,10 @@
$a[] = '\'onUpdate\' => ' .
$this->varExport($relation['onUpdate']);
}
+ if (isset($relation['cascade']) && $relation['cascade']) {
+ $a[] = '\'cascade\' => ' .
$this->varExport($relation['cascade']);
+ }
+
if (isset($relation['equal']) && $relation['equal']) {
$a[] = '\'equal\' => ' .
$this->varExport($relation['equal']);
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---