Skip to content

Problems with changing the attribute (value) of the current locale #238

@Basti007

Description

@Basti007

Hey, I've encountered the issue that I cannot update the locale that is currently being used.
I think I've done something wrong but I'm not quite sure.

My code looks like this:

$this->category->fill([
    'name:de' => $this->nameGerman,
    'name:en' => $this->nameEnglish
]);
$this->category->save();

The variables contain the right values.
The english name is updated if I set my locale to german but then the german name is not updated.

I hope that someone can help me :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions