From 854ca8832e68539173ebcb04b5c62a37c172c94f Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Thu, 4 Jul 2024 17:01:57 +0700 Subject: [PATCH] Fix typo (#373) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e8ca63c62..9d50d8060 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ $user->setAttribute('email', 'yiiliveext@mail.ru'); $user->save(); ``` -Usage with ActiveQuery: +Usage with `ActiveQuery`: ```php use App\Entity\User; @@ -146,7 +146,7 @@ $userQuery = new ActiveQuery(User::class); $user = $userQuery->where(['id' => 1])->onePopulate(); -$username = $user->setAttribute('username'); +$username = $user->getAttribute('username'); $email = $user->getAttribute('email'); ```