From 98571fb3b9c69fbaf3cc3f1b82fac0d681e3ac25 Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Fri, 16 Jan 2015 16:46:29 +0530 Subject: [PATCH] More correct usage of TimeStamp touch method TimeStampBehavior PHPDoc update for the `touch()` method --- framework/behaviors/TimestampBehavior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/behaviors/TimestampBehavior.php b/framework/behaviors/TimestampBehavior.php index ac0103c305..2322431dcc 100644 --- a/framework/behaviors/TimestampBehavior.php +++ b/framework/behaviors/TimestampBehavior.php @@ -53,7 +53,7 @@ use yii\db\Expression; * timestamp to the specified attribute(s) and save them to the database. For example, * * ```php - * $this->timestamp->touch('creation_time'); + * $model->touch('creation_time'); * ``` * * @author Qiang Xue