Skip to content
Browse files

Fix: allow arrays as behavior parameters to be exported by the tablem…

…ap builder
  • Loading branch information...
1 parent 01e211e commit d8dbbe7146ffae35c548406f91280e6b5a92fa60 @K-Phoen K-Phoen committed Nov 26, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 generator/lib/builder/om/PHP5TableMapBuilder.php
View
6 generator/lib/builder/om/PHP5TableMapBuilder.php
@@ -332,11 +332,7 @@ public function getBehaviors()
return array(";
foreach ($behaviors as $behavior) {
$script .= "
- '{$behavior->getName()}' => array(";
- foreach ($behavior->getParameters() as $key => $value) {
- $script .= "'$key' => '$value', ";
- }
- $script .= "),";
+ '{$behavior->getName()}' => ". var_export($behavior->getParameters(), true) . ",";
}
$script .= "
);

0 comments on commit d8dbbe7

Please sign in to comment.
Something went wrong with that request. Please try again.