Log message #4226462

# At Username Text
# Feb 12th 2020, 11:16 admad @dereuromark https://github.com/cakephp/cakephp/pull/14241 Don't be a n00b :)
# Feb 12th 2020, 11:15 lilhermit Hi I notice CakePHP (4) has a BinaryUuidType how do I tell Cakephp the id field (which is binary(16)) is of type BinaryUuid?
# Feb 12th 2020, 11:05 damiano i do not see the cookie in debugkit
# Feb 12th 2020, 11:05 damiano $expiry = new Time('+ 1 year'); $this->response->withCookie(new Cookie( 'CookieAuth', ['test@test.com', '$2y$10$7MozJQ1bJ7l65YNq/MfffffVkZVCONNxN9.I/yMc1hKGiYE1/B8GnS'], $expiry ));
# Feb 12th 2020, 11:05 damiano but is this created or i should return the $response ?
# Feb 12th 2020, 11:04 damiano padon guys for the stupid question but to create a cookie we do: ```$response = $this->response->withCookie($cookie);```
# Feb 12th 2020, 11:02 slackebot gc time let the remember me option to the end
# Feb 12th 2020, 11:02 pieceof php session maybe controlled by php cookies timelimits and other server configurations the max session duration is configured at php.ini there are at least 2 vars u need.... i cant remember the remember me option if not activated : u have to destroy the session if this request is x time after the last request and not ajax maybe if activated u got nothing to do, server may garbage collect it when the max time is exceed u can try to tweak the
# Feb 12th 2020, 10:54 jotpe I used the TableLocator to get the TableObject for my Case.
# Feb 12th 2020, 10:52 challgren I use CakeDC/Users makes things so much easier with the new Authorization/Authentication plugins
# Feb 12th 2020, 10:51 damiano anyone?
# Feb 12th 2020, 10:50 challgren Im gonna tough it out and do PRs for stuff I use
# Feb 12th 2020, 10:49 spriz like there was lots of reason to move from 2.x to 3.x (ORM!) - but not a lot to move from 3.x to 4.x
# Feb 12th 2020, 10:49 dereuromark yeah, momentan is not picking up right now
# Feb 12th 2020, 10:49 spriz @dereuromark I have this weird feeling that a lot of people (including myself) is staying on 3.x for a while :)
# Feb 12th 2020, 10:36 jotpe `Policy for `Cake\ORM\Association\HasMany` has not been defined.`
# Feb 12th 2020, 10:36 jotpe And get this error message:
# Feb 12th 2020, 10:36 jotpe ```$this->Authorization->authorize($this->Invoices->Dunnings);```
# Feb 12th 2020, 10:36 jotpe And use this for authorization:
# Feb 12th 2020, 10:36 jotpe ```$this->hasMany('Dunnings', [ 'foreignKey' => 'invoice_id', 'className' => 'Accounting.Dunnings', ]);```
# Feb 12th 2020, 10:35 jotpe I have this association:
# Feb 12th 2020, 10:35 jotpe Anyone has a clue why the TablePolicy for a associated Model cannot be found in Authorization Plugin?
# Feb 12th 2020, 10:34 challgren Well ones that need error handler middleware disabled
# Feb 12th 2020, 10:34 challgren I havent written any test cases for 4.x yet
# Feb 12th 2020, 10:34 challgren np
# Feb 12th 2020, 10:34 alexdd55976 thanks
# Feb 12th 2020, 10:34 alexdd55976 @challgren i will try it
# Feb 12th 2020, 10:33 dereuromark anyone else having the issue in cake4 that ```$this->disableErrorHandlerMiddleware();``` doesnt work in tests? still catches the exception and doesnt show underlying issue.
# Feb 12th 2020, 10:33 challgren Yes
# Feb 12th 2020, 10:33 alexdd55976 just to clear it up: table user with id (char(36)) will be a uuid autamtically?
# Feb 12th 2020, 10:32 challgren if your doing ids, use _id
# Feb 12th 2020, 10:32 alexdd55976 how is the foreign key be named? user_uuid?
# Feb 12th 2020, 10:32 challgren you can name it id, token, etc
# Feb 12th 2020, 10:32 alexdd55976 so i name the field `uuid`?
# Feb 12th 2020, 10:31 challgren If the db type is char(36) it will map to uuid automagically
# Feb 12th 2020, 10:31 alexdd55976 how will they be generated?
# Feb 12th 2020, 10:30 challgren char(36)
# Feb 12th 2020, 10:30 alexdd55976 how do i use them in cake?
# Feb 12th 2020, 10:29 alexdd55976 dudes.... lets talk UUIDs
# Feb 12th 2020, 10:25 dereuromark same for some plugins that didnt get fully upgraded..
# Feb 12th 2020, 10:24 dereuromark it didnt work anymore probably and I didnt have time to fix everything on my own just yet. help is always welcome