@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * Event triggered before deleting itself. |
| 128 | 128 | * @param ModelEvent $event |
| 129 | - * @return boolean true if parentAttribute not specified. |
|
| 129 | + * @return boolean|null true if parentAttribute not specified. |
|
| 130 | 130 | * @throws IntegrityException throw if $throwRestrictException is true when $onDeleteType is on restrict. |
| 131 | 131 | */ |
| 132 | 132 | public function onDeleteChildren($event) |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | /** |
| 159 | 159 | * Event triggered before updating itself. |
| 160 | 160 | * @param ModelEvent $event |
| 161 | - * @return boolean true if parentAttribute not specified. |
|
| 161 | + * @return boolean|null true if parentAttribute not specified. |
|
| 162 | 162 | * @throws IntegrityException throw if $throwRestrictException is true when $onUpdateType is on restrict. |
| 163 | 163 | */ |
| 164 | 164 | public function onUpdateChildren($event) |
@@ -222,6 +222,9 @@ discard block |
||
| 222 | 222 | return $this->parent !== null; |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | + /** |
|
| 226 | + * @param SelfBlameableTrait $ancestor |
|
| 227 | + */ |
|
| 225 | 228 | public function hasAncestor($ancestor) |
| 226 | 229 | { |
| 227 | 230 | if ($this->guid == $ancestor->guid) { |