Created
November 18, 2016 02:43
-
-
Save aramis-it/dfae9ed340891a7d2a5597112c6feb2b to your computer and use it in GitHub Desktop.
cakephp 3 update entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$translation = $this->Translations->patchEntity($translation, $this->request->data, [ | |
'validate' => false, | |
'associated' => ['SentenceTranslations' => ['accessibleFields' => ['id' => true]]] | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment