From aa4e21caa14cf3821c132d91799204553f84783a Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Thu, 11 Jan 2024 11:43:21 -0300 Subject: [PATCH] Update docs. --- README.md | 2 +- src/ActiveRecord.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c5ca2d965..a58e3f1f1 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ use Yiisoft\ActiveRecord\ActiveRecord; **/ final class User extends ActiveRecord { - public function tableName(): string + public function getTableName(): string { return '{{%user}}'; } diff --git a/src/ActiveRecord.php b/src/ActiveRecord.php index f636136a3..7b408a43d 100644 --- a/src/ActiveRecord.php +++ b/src/ActiveRecord.php @@ -40,21 +40,21 @@ * In this example, Active Record is providing an object-oriented interface for accessing data stored in the database. * But Active Record provides much more functionality than this. * - * To declare an ActiveRecord class you need to extend {@see ActiveRecord} and implement the `tableName` method: + * To declare an ActiveRecord class you need to extend {@see ActiveRecord} and implement the `getTableName` method: * * ```php *