From e63393cd390095b79f3a2f7cbb4de95f4cd06e75 Mon Sep 17 00:00:00 2001 From: phuson Date: Wed, 17 Oct 2007 05:43:07 +0000 Subject: [PATCH] Added generation for "equal: true" in the relations block of yml. --- lib/Doctrine/Import/Builder.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Doctrine/Import/Builder.php b/lib/Doctrine/Import/Builder.php index d14e06ea8..f0e962b02 100644 --- a/lib/Doctrine/Import/Builder.php +++ b/lib/Doctrine/Import/Builder.php @@ -401,6 +401,10 @@ END; $a[] = '\'onUpdate\' => ' . var_export($relation['onUpdate'], true); } + if (isset($relation['equal']) && $relation['equal']) { + $a[] = '\'equal\' => ' . var_export($relation['equal'], true); + } + if ( ! empty($a)) { $ret[$i] .= ', ' . 'array('; $length = strlen($ret[$i]);