Log message #4228227

# At Username Text
# Feb 21st 2020, 17:58 ricksaccous looking at AuthenticationComponent
# Feb 21st 2020, 17:58 ricksaccous so this is intended behavior
# Feb 21st 2020, 17:58 ricksaccous i suppose the token is meant to be passed throughout, rather than persisting
# Feb 21st 2020, 17:50 ricksaccous but I don't understand why they'd behave differently
# Feb 21st 2020, 17:50 ricksaccous and that's what's causing it
# Feb 21st 2020, 17:50 ricksaccous I have a sneaking suspicion token isn't writing to Session for whatever reason
# Feb 21st 2020, 17:48 ricksaccous hmmmmm
# Feb 21st 2020, 17:47 slackebot <ricksaccous>
# Feb 21st 2020, 17:46 ricksaccous I'll also show the authentication set up I have in middleware:
# Feb 21st 2020, 17:45 ricksaccous Only log in action
# Feb 21st 2020, 17:44 ricksaccous so
# Feb 21st 2020, 17:44 ricksaccous I think this is nonsensical without showing some code
# Feb 21st 2020, 17:43 ricksaccous the token identifier returns valid but it never redirects after "logging in" , the first identifier I have (form one) redirects fine
# Feb 21st 2020, 17:42 ricksaccous I'm using a custom identifier along with a token identifier
# Feb 21st 2020, 17:42 ricksaccous with using two identifiers in cakephp3
# Feb 21st 2020, 17:42 ricksaccous I'm running into a strange issue
# Feb 21st 2020, 17:41 kailas that was a good way to waste a morning.
# Feb 21st 2020, 17:40 kailas oh shit, nevermind, i’m an idiot. i created a custom getter with the same name..
# Feb 21st 2020, 17:39 kailas is there something special about the name “claims” in cake? i have a field in my record named claims. for some reason if i debug(a), i see that a->claims has a value. however, if i do debug(a->claims), it’s empty? wtf?
# Feb 21st 2020, 16:56 dereuromark ;) all right
# Feb 21st 2020, 16:56 kaliel yeah sure, just want to make my plugin ok with cake 5 :)
# Feb 21st 2020, 16:56 dereuromark ah nevermind, they still normally exist and work in 4.x even still. so all good
# Feb 21st 2020, 16:55 dereuromark @kaliel You could PR them to the cake4 branch of Shim plugin if you miss them and want to make upgrading of existing projects a bit easier.
# Feb 21st 2020, 16:40 ndm @kaliel `symfony/finder` and `symfony/filesystem`
# Feb 21st 2020, 16:39 ndm I mean, technically you don't really _need_ to change anything, keeping things as is won't cause any harm to the Bitbucket repo, but removing the stuff that you don't use surely is advised from a purely organisational point of view.
# Feb 21st 2020, 16:36 ricksaccous that's somewhat how i operate though it is good to get ideas every now and then
# Feb 21st 2020, 16:36 ricksaccous @trash.mail.collector you gotta just do stuff, nothing more necessary, don't fret over small things and just try it and see, the more you take action the easier it is to figure things out for yourself
# Feb 21st 2020, 16:35 kaliel i already asked, but can't remember, what lib do you suggest for replacement of Folder and File API ? (i'll miss them so much)
# Feb 21st 2020, 16:33 trash.mail.collector do I need to make any other changes before an initial commit (this is my first 4.x project -- I apologize for the dumb questions)?
# Feb 21st 2020, 16:29 ndm @trash.mail.collector Sure, why not, unless Bitbucket somehow has support for it, it only serves a function for Github based code hosting.
# Feb 21st 2020, 16:26 ndm Personally I'd also put manual type validation in the method code itself, nothing more annoying then too lax interfaces IMHO :)
# Feb 21st 2020, 16:25 kaliel @ndm thx a lot
# Feb 21st 2020, 16:25 trash.mail.collector I have a new cakephp skeleton app (created using Composer). If I want to add that as an initial commit to a BitBucket repo, should I delete the .github directory?
# Feb 21st 2020, 16:24 ndm @kaliel Check whether your `d` associations target table is actually an instance of your table class, and not an autogenerated model (an instance of `\Cake\ORM\Table`)
# Feb 21st 2020, 16:23 ndm If you mean the actual method signature, they ses, you'd use no typehint there and only put one in the docblock
# Feb 21st 2020, 16:22 kaliel thx @ndm,so i use no type in params ?
# Feb 21st 2020, 16:20 ndm In the `@param` docblock. PHP itself doesn't support union types yet.
# Feb 21st 2020, 16:18 kaliel do you know how to write union types for method params in php ?
# Feb 21st 2020, 15:58 kailas well, the bigger issue is that i’m just not seeing my associated records on the view page for a. in reality i’m actually joining d.x.y. in my result, i don’t see x or y
# Feb 21st 2020, 15:47 neon1024 You can manually join if you’d prefer, but do remember you’ll end up with a primary row for every associated record
# Feb 21st 2020, 15:47 kailas i’m surprised i’ve never had this question before