# |
Jul 8th 2019, 10:23 |
half2me |
it saves correctly when it is disabled |
# |
Jul 8th 2019, 10:22 |
half2me |
exactly |
# |
Jul 8th 2019, 10:22 |
neon1024 |
However, with atomic false working it probably isn’t a validation issue |
# |
Jul 8th 2019, 10:22 |
half2me |
as atomicity would be required for something running in my afterSave transaction |
# |
Jul 8th 2019, 10:22 |
neon1024 |
Usually things like that, in my experience, are that something has failed validation and the transaction is rolled back. Usually a validation failure in an associated table |
# |
Jul 8th 2019, 10:22 |
half2me |
for now I’ve just left the `['atomic' => false]` option in there, but this is not a proper solution |
# |
Jul 8th 2019, 10:21 |
half2me |
yet I remember this exact scenario a few months ago when trying to debug something else |
# |
Jul 8th 2019, 10:21 |
half2me |
@neon1024 I searched, but found nothing |
# |
Jul 8th 2019, 10:11 |
neon1024 |
@half2me Github issues would be the place to look; in the cakephp/cakephp project |
# |
Jul 8th 2019, 10:11 |
neon1024 |
@neothermic AppTable I presume |
# |
Jul 8th 2019, 10:02 |
half2me |
wondering if this issue is tracked somewhere |
# |
Jul 8th 2019, 10:02 |
half2me |
@dereuromark I think you suggested passing in this option to me a couple of months ago when I was having this problem for the first time |
# |
Jul 8th 2019, 10:02 |
half2me |
if I pass in the `['atomic' => false]` option, it works fine |
# |
Jul 8th 2019, 10:02 |
half2me |
somtimes it will return an entity which is not persisted |
# |
Jul 8th 2019, 10:01 |
half2me |
When calling `findOrCreate()` inside a transaction |
# |
Jul 8th 2019, 10:01 |
half2me |
hey guys, I found a weird bug, which I know has come up before, but I’m not sure if it has been fixed in later versions of CakePHP. I’m currently on 3.7.15 on a project. |
# |
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 |