Skip to content

Commit c839273

Browse files
committed
better example
1 parent a85a1fb commit c839273

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ Now you can use the repository manager to access your documents.
116116
$repository = $manager->get(Profile::class);
117117

118118
$repository->persist(new Profile('r-1', 'Rango', Status::ACTIVE, [new Skill('php')]));
119-
$repository->persist(new Profile('r-2', 'Foo', Status::ACTIVE, [new Skill('php')]));
120-
$repository->persist(new Profile('r-3', 'Bar', Status::ACTIVE, [new Skill('php')]));
119+
$repository->persist(new Profile('r-2', 'Foo', Status::ACTIVE, [new Skill('node'), new Skill('js')]));
120+
$repository->persist(new Profile('r-3', 'Bar', Status::INACTIVE, [new Skill('mongodb')]));
121121

122122
$profiles = $repository->findBy(
123123
filter: ['status' => Status::ACTIVE->value],

0 commit comments

Comments
 (0)