Log message #4228414

# At Username Text
# Feb 24th 2020, 15:35 neon1024 This is what I would try :)
# Feb 24th 2020, 15:35 neon1024 `if ($this->getRequest()->getParam('prefix') === null) { $this->Examples->behaviors()->unload('Nifty'); }`
# Feb 24th 2020, 15:33 birdy247 Anyone have any "nifty" ideas on how to disable a behavior only on a non prefixed route?
# Feb 24th 2020, 15:31 neon1024 Or should I be using a Shell command I wonder :thinking_face:
# Feb 24th 2020, 15:30 neon1024 Can I copy data using migrations? Or do I need to write my own SQL? Ideally I’d like to use the ORM to fetch some rows, loop them and write the various foreign keys into the new table.
# Feb 24th 2020, 14:53 heke thanks
# Feb 24th 2020, 14:33 savant test from slack
# Feb 24th 2020, 14:33 savant3 test from irc
# Feb 24th 2020, 14:05 savant3 test from irc
# Feb 24th 2020, 13:57 admad @np why are you returning the query from callback?
# Feb 24th 2020, 12:56 kevin.pfeifer ok thx :+1:
# Feb 24th 2020, 12:56 spriz yeah I wouldn't worry about it
# Feb 24th 2020, 12:55 kevin.pfeifer but if you say there shouldn't be any reason to delete old migrations then i will leave them be
# Feb 24th 2020, 12:54 kevin.pfeifer i just want to clean up my repo. So the migration_snapshot command creates a migration representation of my current DB status as i see right now.
# Feb 24th 2020, 12:53 k4t I am thinking about that solution: https://github.com/Gregwar/Captcha
# Feb 24th 2020, 12:53 k4t Sorry, project in which I need Captcha is made with CakePHP2 :/
# Feb 24th 2020, 12:51 spriz but make sure it's exectued everywhere
# Feb 24th 2020, 12:50 spriz If you really want, you can do this: `bin/cake bake migration_snapshot Foo` and delete all previous migrations
# Feb 24th 2020, 12:50 spriz @kevin.pfeifer Why would you ever need to? :)
# Feb 24th 2020, 12:49 kevin.pfeifer Hey Community, I got a question about Migrations. I got quite the amount of migrations, which have already been applied on my test and live instances. Now my question is: When can/should I delete old migrations which are not necessary any more?
# Feb 24th 2020, 12:48 spriz some opinions here https://law.stackexchange.com/questions/27908/gdpr-recaptcha-with-users-consent
# Feb 24th 2020, 12:45 spriz and they harvest your user
# Feb 24th 2020, 12:45 spriz I guess the issue is Google reCAPTCHA is usually loaded without the user giving consent
# Feb 24th 2020, 12:45 cnizzardini ?
# Feb 24th 2020, 12:44 cnizzardini Google recatchpa is not GDPR compliant>
# Feb 24th 2020, 12:38 k4t can u recommend captcha solution for CakePHP 3? Except reCAPTCHA which is not GDPR compliant
# Feb 24th 2020, 12:37 k4t hello
# Feb 24th 2020, 12:32 naino Alright thanks :)
# Feb 24th 2020, 12:30 ndm Yes it is, the 1.x version is CakePHP 3 compatible
# Feb 24th 2020, 12:26 naino Hi, is it possible to use Authentication plugin with Cakephp 3.8? Thanks.
# Feb 24th 2020, 12:12 rahulmbohra :raising_hand: Roll call! Who else is here?
# Feb 24th 2020, 11:36 dereuromark I am a bit lost on that strategy part Did a manual ```ResponseFactory implements ResponseFactoryInterface``` to create new cake specific ```return new Response($headers, (string)$body);``` but that didnt quite work for now.
# Feb 24th 2020, 11:33 admad Hmm I had submitted a patch to that class way back. Don't remember anything now. Can have a look later today.
# Feb 24th 2020, 11:22 dereuromark ```CommonClassesStrategy``` has some cake related config setup, but not sure how this is used, seems to not work as expected for us here.
# Feb 24th 2020, 11:18 dereuromark client I get, but "Http\Discovery\NotFoundException: No message factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation."
# Feb 24th 2020, 11:16 dereuromark @admad Trying to get this adapter working for cake4. How is the client and factory instantiated for cake4 apps here? https://github.com/php-http/cakephp-adapter/blob/cake4/src/Client.php
# Feb 24th 2020, 11:12 admad @noel pretty much every FOC plugin has a cake 4 compatible beta release. Check the releases page of any repo. And btw at least I have no interest wasting time tweeting :)
# Feb 24th 2020, 11:01 spriz if you add it will be in the same transaction :) Just beware the outer transaction fails if the "inner transaction" does :)
# Feb 24th 2020, 10:58 ndm yes it does, and cakes beforesave event is in the transaction... check the sql logs
# Feb 24th 2020, 10:55 noel Maybe I should start with a different question. If one does `$table->save()` does that start a transaction? And if one wanted to do some manual inserts that this save should be dependent on, how could one intercept that transaction and add dependent queries to it?
# Feb 24th 2020, 10:52 noel I mean I could start a transaction as per https://book.cakephp.org/3/en/orm/database-basics.html#using-transactions but how to make sure that isn't a different transaction from the enclosing `save`?