Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 121f23a

Browse files
authored
docs: fix array key typo
1 parent 69bf6a6 commit 121f23a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

development/components/database/objectmodel.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,12 @@ classDiagram
409409

410410
#### Enable multi language + multi shop for your entity
411411

412-
To do so, you must declare the `multishop_lang` setting of your model definition to `true`:
412+
To do so, you must declare the `multilang_shop` setting of your model definition to `true`:
413413

414414
```php
415415
public static $definition = [
416416
...
417-
'multishop_lang' => true,
417+
'multilang_shop' => true,
418418
...
419419
```
420420

@@ -432,7 +432,7 @@ And then, you must declare which fields are available for translations:
432432
)
433433
```
434434

435-
#### Loading or saving a multishop_lang object
435+
#### Loading or saving a multilang_shop object
436436

437437
While languages are [accessible with accessors]({{< ref "#multiple-language-accessors" >}}), if you need to programmatically retrieve an ObjectModel related to a particular shop (not the selected / current shop from Context), you need to change the method used to load an object:
438438

@@ -672,4 +672,4 @@ public function setFieldsToUpdate(?array $fields)
672672
{
673673
$this->update_fields = $fields;
674674
}
675-
```
675+
```

0 commit comments

Comments
 (0)