aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-22 14:19:18 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-22 14:19:18 +0100
commit942f1864e7b51d465c9970ae6ce8b9a6c8927fb5 (patch)
tree95507002d6c1e27288520f4f4bcb73114bd8bbca
parent90cdfe10135a66a38090fd18a38d3e583720681a (diff)
downloadPraspel-942f1864e7b51d465c9970ae6ce8b9a6c8927fb5.zip
Praspel-942f1864e7b51d465c9970ae6ce8b9a6c8927fb5.tar.gz
Praspel-942f1864e7b51d465c9970ae6ce8b9a6c8927fb5.tar.bz2
Adding a clause redefine its parent.
-rw-r--r--Model/Behavior.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Model/Behavior.php b/Model/Behavior.php
index fdc12d1..6c5ee46 100644
--- a/Model/Behavior.php
+++ b/Model/Behavior.php
@@ -249,6 +249,8 @@ class Behavior extends Clause {
'Clause @%s is not allowed in @%s.',
0, array($name, $this->getId()));
+ $clause->setParent($this);
+
return $this->_clauses[$name] = $clause;
}