Log message #4192239

# At Username Text
# Jul 8th 2019, 09:55 neothermic we got about 1.5k lines in our appmodel. no idea where they'll go when we move to 3.x :)
# Jul 8th 2019, 09:49 neon1024 Awww, AppModel :,)
# Jul 8th 2019, 09:42 neothermic we put ours in the appmodel, so it is always enforced
# Jul 8th 2019, 09:42 challgren I did behavior loaded with the Auth tenant_id in the config, so it was all automatic
# Jul 8th 2019, 09:41 neon1024 That might well be a component or trait or behaviour
# Jul 8th 2019, 09:41 challgren @neon1024 beforeFind that added tenant_id
# Jul 8th 2019, 09:40 neon1024 Oh, I haven’t even got onto the queries yet
# Jul 8th 2019, 09:40 neothermic @neon1024 we implemented this with a beforeFind that looked into the query and at the table(s) in use in the query, and added a condition to it for the establishment_id if the query didn't already have one
# 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)`