Log message #4149380

# At Username Text
# Jun 10th 2018, 11:14 saeideng no probelm
# Jun 10th 2018, 11:14 gannher Sorry i already delete project :D I am currently reinstall with composer :)
# Jun 10th 2018, 11:13 saeideng add a debug(1 ) into `public function validationDefault(Validator $validator)`
# Jun 10th 2018, 11:13 saeideng for testing
# Jun 10th 2018, 11:11 gannher yes just started so not a problem to reinstall. I will use git but not again git init my project
# Jun 10th 2018, 11:10 saeideng are you using git ?
# Jun 10th 2018, 11:10 graziel yeah if you just started it will be probably the quickest solution
# Jun 10th 2018, 11:09 gannher may be i modifie something that i don't remember
# Jun 10th 2018, 11:09 gannher i will reinstall all for test
# Jun 10th 2018, 11:08 saeideng on master ( latest version )
# Jun 10th 2018, 11:07 saeideng your code works for me ``` '[errors]' => [ 'login' => [ 'length' => 'Login need to be at least 3 characters long' ] ], ```
# Jun 10th 2018, 11:07 kitcat711_ I had no error message during the upgrading process but I was not expecting to have to modify this file (routes, config, bootstrap is ok, but index?)
# Jun 10th 2018, 11:07 graziel just to be sure its not a typo or letter case
# Jun 10th 2018, 11:06 graziel mostly filenames of UsersController and UsersTable
# Jun 10th 2018, 11:06 graziel can you show somehow how your dir structure looks like?
# Jun 10th 2018, 11:05 gannher no problem very thanks a lot for help
# Jun 10th 2018, 11:05 kitcat711_ I juste upgraded form 3,5,4 to 3,6 and I am trying to debug, is that "norma" that I must modify files like webroot/index.php ?
# Jun 10th 2018, 11:04 graziel hm im running out of ideas, your code looks ok
# Jun 10th 2018, 11:04 gannher yes I follow tutorial. It's strange
# Jun 10th 2018, 11:03 gannher 3.6.4
# Jun 10th 2018, 11:03 graziel bin/cake version
# Jun 10th 2018, 11:02 saeideng your code looks is true ( except `create ()` )
# Jun 10th 2018, 11:01 gannher i don't know how to see exactly
# Jun 10th 2018, 11:00 gannher last i get with composer
# Jun 10th 2018, 11:00 graziel what cake version is it?
# Jun 10th 2018, 10:58 gannher no and log is correct
# Jun 10th 2018, 10:57 graziel do you have notification in debugKit about missing table class?
# Jun 10th 2018, 10:54 gannher [n] > y
# Jun 10th 2018, 10:54 gannher Do you want to overwrite? (y/n/a/q)
# Jun 10th 2018, 10:54 gannher File `/home/guillaume/Domotique/domotique-france/src/Model/Entity/User.php` exists
# Jun 10th 2018, 10:54 gannher Baking entity class for User...
# Jun 10th 2018, 10:54 gannher yes i bake it
# Jun 10th 2018, 10:53 graziel it should be \App\Model\Entity\User
# Jun 10th 2018, 10:52 graziel did yuo really baked it?
# Jun 10th 2018, 10:52 saeideng or ``` $data=[ 'login'=>'gg', 'password'=>'123', 'role'=>'admin' ]; $user = $this->Users->newEntity(); $entity = $this->Users->patchEntity($user , $data); debug($user); ```
# Jun 10th 2018, 10:52 graziel you have default entity
# Jun 10th 2018, 10:52 gannher errors*
# Jun 10th 2018, 10:52 gannher Error has always empty :(
# Jun 10th 2018, 10:52 gannher object(Cake\ORM\Entity) {'login' => 'gg', 'password' => '123','role' => 'admin','[new]' => true,...'[errors]' => [],'[invalid]' => [],'[repository]' => 'Users'}
# Jun 10th 2018, 10:50 saeideng result ?
# Jun 10th 2018, 10:50 gannher thanks