From 06334d3484e68189d8b2cf837bae0a6af6eccc1a Mon Sep 17 00:00:00 2001 From: Kenshin Okinaka Date: Thu, 9 Mar 2017 23:25:32 +0900 Subject: [PATCH] [ja] follows #4796, #4800, #4803 --- ja/controllers/components/authentication.rst | 4 +--- ja/orm/entities.rst | 8 ++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) 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()`` が追加されました。 + バリデーションエラー ====================