You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Vanilo\Foundation\Models\Address::class now extends Konekt\Address\Models\Address::class and has relationships as below:
publicfunction country(): BelongsTo
public function province(): BelongsTo
The text was updated successfully, but these errors were encountered:
j-dohnalek
changed the title
Order of registering modules appers to remove customer relationship from Address class.
Order of registering modules appears to remove customer relationship from Address class.
Dec 5, 2023
j-dohnalek
changed the title
Order of registering modules appears to remove customer relationship from Address class.
Order of registering modules appears to remove customers relationship from Address class.
Dec 5, 2023
Not sure if this is the correct place to raise the question. I hope the below explanation makes sense.
After installing the demo repository and setting everything up, we noticed that step 1 and step 2 happen during boot of application.
The issue is that after the second module registration
Address::class
looses the relationshipcustomers(): BelongsToMany
.Is this correct?
Step 1
https://github.com/artkonekt/appshell/blob/61ea8b7c8e715884ab6598acccfdff6796dcc1b0/src/Providers/ModuleServiceProvider.php#L114
First loads the following module
Konekt\AppShell\Providers\ModuleServiceProvider::boot
and it runs the following linesThe
Konekt\AppShell\Models\Address::class
now has extendsKonekt\Address\Models\Address
and has relationships as below:Step 2
https://github.com/vanilophp/framework/blob/57298341e8e11659ec2b8a28e381fe82862cdc1e/src/Foundation/Providers/ModuleServiceProvider.php#L85C8-L85C101
Sometimes after the following module load
Vanilo\Foundation\Providers\ModuleServiceProvider::boot
The
Vanilo\Foundation\Models\Address::class
now extendsKonekt\Address\Models\Address::class
and has relationships as below:The text was updated successfully, but these errors were encountered: