Log message #4192231

# At Username Text
# Jul 8th 2019, 09:34 neon1024 I still feel like with Authorize class is the best spot
# Jul 8th 2019, 09:33 neon1024 I’m on 3.7 and using AuthComponent
# Jul 8th 2019, 09:33 neon1024 I’ve had a bash at using my Authorize class, which didn’t work too well, and now I’m thinking about a component
# Jul 8th 2019, 09:33 neon1024 What’s the best approach for ensuring that if a url change is made, to a different id, that I can prevent data being seen by incorrect users?
# Jul 8th 2019, 09:32 neon1024 I am implementing organisations, fixed in the session, so someone in an organisation can’t see other data
# Jul 8th 2019, 09:23 conehead Alrighty....so let's see if I am able to create my first own bake template :)
# Jul 8th 2019, 09:07 challgren E_ALL!! FTW
# Jul 8th 2019, 09:06 challgren Ahhhh you know I hate doing that!
# Jul 8th 2019, 09:06 dereuromark ah I think I didnt do the 3.7 thing, so no reason for me to change anything here either.
# Jul 8th 2019, 09:06 dereuromark challgren: silence deprecations and all seems easy to upgrade, right?
# Jul 8th 2019, 09:05 nuzulfikrie guys need your help. how do you check for session time out of a user trigger save to db? .Any way to do that? ```if ( session_timeout == true) { initiate_save_data_in_db(); }```
# Jul 8th 2019, 09:05 challgren My only issue was the allowEmptyString flipped message and when
# Jul 8th 2019, 09:02 dereuromark I updated my apps to 3.8 without any issues actually, not a single bc break so far on those. Thats a first :slightly_smiling_face:
# Jul 8th 2019, 08:53 kgb.acct.personal How do I do cross join in cakephp?
# Jul 8th 2019, 08:36 dereuromark Personally, I love using the magic strings, as they are autocompleted for me, and less noise (use statement)
# Jul 8th 2019, 08:35 slackebot <neon1024>
# Jul 8th 2019, 08:35 neon1024 @challgren Perhaps, but that’s not the ticket I’m working on right now
# Jul 8th 2019, 08:35 dereuromark I used a quick Control+F + loadModel on https://github.com/cakephp/cakephp/releases
# Jul 8th 2019, 08:35 challgren @neon1024 upgrade that app!
# Jul 8th 2019, 08:34 conehead That could be a possible reason ;)
# Jul 8th 2019, 08:34 neon1024 Another mystery solved, thanks @dereuromark
# Jul 8th 2019, 08:33 dereuromark so I guess 3.7.7 is just not yet 3.8.0
# Jul 8th 2019, 08:33 dereuromark "ModelAwareTrait::loadModel() now allows fully qualified namespaces as a parameter."
# Jul 8th 2019, 08:33 dereuromark the changelogs clearly state that this is only supported for 3.8+
# Jul 8th 2019, 08:33 neon1024 Seems to be the same in 3.7.9 I guess I’ve got something screwy somewhere
# Jul 8th 2019, 08:33 conehead I'm on 3.8 and did a quick try
# Jul 8th 2019, 08:32 neon1024 I wonder why it doesn’t for me :thinking_face:
# Jul 8th 2019, 08:31 conehead Using classname is working fine for me
# Jul 8th 2019, 08:31 neon1024 So 3.7.7 it probably needs some class namespace breaking up
# Jul 8th 2019, 08:30 neon1024 Which is fair
# Jul 8th 2019, 08:30 neon1024 I guess that `$this->App\Model\Table\OrganisationsTable` is invalid
# Jul 8th 2019, 08:30 neon1024 So it’s trying to set `$this->{$alias} = $factory($modelClass);`
# Jul 8th 2019, 08:30 neon1024 So the actual issue seems to be that the `$alias` is `public 'alias' => string 'App\Model\Table\OrganisationsTable' (length=34)`
# Jul 8th 2019, 08:29 neon1024 Okay
# Jul 8th 2019, 08:25 admad don't need test suite, can just stick some `debug()` / `dd()` in the method
# Jul 8th 2019, 08:23 neon1024 If it’s covered by the tests, there is probably an issue in my code perhaps a bad namespace
# Jul 8th 2019, 08:23 neon1024 Well two reasons really, firstly I am working on other bits currently so don’t want to get too into something else mentally, and secondly I don’t have the test suite for the core setup so I can’t easily jump in and run the tests
# Jul 8th 2019, 08:22 neon1024 It’s covered in the tests cases
# Jul 8th 2019, 08:22 neon1024 https://github.com/cakephp/cakephp/blob/master/tests/TestCase/Datasource/ModelAwareTraitTest.php#L74
# Jul 8th 2019, 08:21 admad why guess when you can find out what's actually going on? :slightly_smiling_face:
# Jul 8th 2019, 08:21 neon1024 I’ll have a quick look in the tests