@@ 210-215 (lines=6) @@ | ||
207 | */ |
|
208 | protected function isParentOrRoot($value) |
|
209 | { |
|
210 | if (!is_null($this->root)) { |
|
211 | $rootClass = get_class($this->root->getEntityObject()); |
|
212 | if ($rootClass == get_class($value)) { |
|
213 | return true; |
|
214 | } |
|
215 | } |
|
216 | ||
217 | if (!is_null($this->parent)) { |
|
218 | $parentClass = get_class($this->parent->getEntityObject()); |
|
@@ 217-222 (lines=6) @@ | ||
214 | } |
|
215 | } |
|
216 | ||
217 | if (!is_null($this->parent)) { |
|
218 | $parentClass = get_class($this->parent->getEntityObject()); |
|
219 | if ($parentClass == get_class($value)) { |
|
220 | return true; |
|
221 | } |
|
222 | } |
|
223 | } |
|
224 | ||
225 | /** |