@@ -42,7 +42,7 @@ class MultiTranslateBehavior extends TranslateBehavior {
4242 * @param mixed $config
4343 * @return void
4444 */
45- public function setup ($ Model , $ config = array ()) {
45+ public function setup (Model $ Model , $ config = array ()) {
4646 parent ::setup ($ Model ,$ config );
4747
4848 if ( !isset ( $ this ->multiOptions [$ Model ->alias ] ) )
@@ -81,7 +81,7 @@ public function multiTranslateOptions(Model $model,$options ) {
8181 * @param boolean $primary Did the find originate on $model.
8282 * @return array Modified results
8383 */
84- public function afterFind (Model $ model , $ results , $ primary ) {
84+ public function afterFind (Model $ model , $ results , $ primary = false ) {
8585 $ model ->virtualFields = $ this ->runtime [$ model ->alias ]['virtualFields ' ];
8686 $ this ->runtime [$ model ->alias ]['virtualFields ' ] = $ this ->runtime [$ model ->alias ]['fields ' ] = array ();
8787 $ locale = $ this ->_getLocale ($ model );
@@ -136,7 +136,7 @@ public function afterFind(Model $model, $results, $primary) {
136136 * @param Model $model Model invalidFields was called on.
137137 * @return boolean
138138 */
139- public function beforeValidate (Model $ model ) {
139+ public function beforeValidate (Model $ model, $ options = array () ) {
140140 $ locale = $ this ->_getLocale ($ model );
141141 if (empty ($ locale )) {
142142 return true ;
0 commit comments