diff --git a/ja/controllers/components/authentication.rst b/ja/controllers/components/authentication.rst index c5d96f75ef..3ff77f3196 100644 --- a/ja/controllers/components/authentication.rst +++ b/ja/controllers/components/authentication.rst @@ -215,9 +215,7 @@ all キーは ``AuthComponent::ALL`` と記述することもできます。 :: $this->Auth->setUser($user); return $this->redirect($this->Auth->redirectUrl()); } else { - $this->Flash->error(__('Username or password is incorrect'), [ - 'key' => 'auth' - ]); + $this->Flash->error(__('Username or password is incorrect')); } } } diff --git a/ja/orm/entities.rst b/ja/orm/entities.rst index 2eaf2ea53e..99e1f5867c 100644 --- a/ja/orm/entities.rst +++ b/ja/orm/entities.rst @@ -232,6 +232,14 @@ CakePHP の ORM を使うためにエンティティクラスを生成する必 $article = new Article(['title' => 'New Article'], ['markClean' => true]); +``Entity`` の全ての変更されたプロパティの一覧を取得するには、次のように呼ぶことができます。 :: + + $dirtyFields = $entity->getDirty(); + +.. versionadded:: 3.4.3 + + ``getDirty()`` が追加されました。 + バリデーションエラー ====================