@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $class->getNamespace()->addUse(\Sirius\Orm\Action\Delete::class, 'DeleteAction'); |
55 | 55 | $class->getNamespace()->addUse(\Sirius\Orm\Action\Update::class, 'UpdateAction'); |
56 | 56 | $class->addProperty('deletedAtColumn', $this->behaviour->getDeletedAtColumn()) |
57 | - ->setVisibility('protected'); |
|
57 | + ->setVisibility('protected'); |
|
58 | 58 | |
59 | 59 | // |
60 | 60 | $method = $class->addMethod('newDeleteAction'); |
@@ -119,13 +119,13 @@ discard block |
||
119 | 119 | public function observeBaseQueryClass(ClassType $class): ClassType |
120 | 120 | { |
121 | 121 | $class->addProperty('deletedAtColumn', $this->behaviour->getDeletedAtColumn()) |
122 | - ->setVisibility('protected'); |
|
122 | + ->setVisibility('protected'); |
|
123 | 123 | |
124 | 124 | // add guard |
125 | 125 | if (! $class->hasMethod('init')) { |
126 | 126 | $class->addMethod('init') |
127 | - ->setVisibility(ClassType::VISIBILITY_PROTECTED) |
|
128 | - ->setBody('parent::init();' . PHP_EOL); |
|
127 | + ->setVisibility(ClassType::VISIBILITY_PROTECTED) |
|
128 | + ->setBody('parent::init();' . PHP_EOL); |
|
129 | 129 | } |
130 | 130 | $init = $class->getMethod('init'); |
131 | 131 | $init->addBody('$this->withoutTrashed();' . PHP_EOL); |