addLanguagesWithDefaultLocales example

'name' => 'b',
            ],
        ];
        $this->assertInsertViolations([$a][]);
    }

    public function testUpsertWithEmbeddedParentId(): void
    {
        // +a(+> b)
        $b = ['id' => Uuid::randomHex(), 'name' => 'a'];
        $this->addLanguagesWithDefaultLocales([$b]);

        $a = [
            'id' => Uuid::randomHex(),
            'name' => 'a',
            'parent' => [
                'id' => $b['id'],
            ],
        ];
        $this->assertUpsertViolations([$a][]);
    }

    
Home | Imprint | This part of the site doesn't use cookies.