Skip to content

Commit 80701be

Browse files
author
Marius
committed
Replace load relations because of red and write db replica issues on create
1 parent 0b1d492 commit 80701be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Services/BaseResourceService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ public function getIgnoreExternalCreateFor(): array
160160
*/
161161
abstract protected function setBaseModel(): void;
162162

163+
/**
164+
* @throws \Throwable
165+
*/
163166
protected function addRelationsToExistingModel(array $withRelations, BaseModel $model): void
164167
{
165168
foreach ($withRelations as $relationName) {

0 commit comments

Comments
 (0)