We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 780b53e commit 6da9b7bCopy full SHA for 6da9b7b
src/Models/BaseModel.php
@@ -455,13 +455,11 @@ protected function initializeActiveRecordSegregationProperties(): void
455
456
foreach ([self::A => 'Attributes', self::R => 'Relations'] as $property => $postfix) {
457
try {
458
- $this->$property = new ($classFqn = $prefix . $this->$postfix)($this);
+ $this->$property = new ($classFqn = $prefix . $postfix)($this);
459
} catch (\Throwable) {
460
$this->$property =
461
new ($classFqn = 'MacropaySolutions\LaravelCrudWizard\Models\Attributes\BaseModel' .
462
- $this->$postfix)(
463
- $this
464
- );
+ $postfix)($this);
465
}
466
467
self::$activeRecordFqnSegregationPropertiesFqnsMap[$class][$property] = $classFqn;
0 commit comments