# |
Feb 24th 2020, 15:49 |
ricksaccous |
i'm only thinking like that for the sake of your team |
# |
Feb 24th 2020, 15:49 |
ricksaccous |
whatever |
# |
Feb 24th 2020, 15:49 |
ricksaccous |
probably |
# |
Feb 24th 2020, 15:49 |
ricksaccous |
actually the neatest way would be in it's own migration where you write your own sql |
# |
Feb 24th 2020, 15:48 |
ricksaccous |
i see |
# |
Feb 24th 2020, 15:48 |
neon1024 |
Nah, it’s a one off migration, I need to refactor some associations |
# |
Feb 24th 2020, 15:48 |
ricksaccous |
@neon1024 i'd probably just use a shell command for something like that if you don't need to do it on some page action |
# |
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. |