Log message #4223635

# At Username Text
# Jan 23rd 2020, 18:40 megan @luizcmarin please share with us what you've learnt and what you are up to! (please email me community@cakephp.org - we'd love to hear more and maybe share it with the rest of the community via our channels) :)
# Jan 23rd 2020, 18:39 challgren @ricksaccous you could wrap your task execute in a try catch and then send on failure
# Jan 23rd 2020, 18:38 luizcmarin @ricksaccous well, I already burned a lot of cake, I missed many recipes, but the cake has not disappointed me, on the contrary, I am increasingly enjoying it. Easy to customize, first-rate support, it's great!
# Jan 23rd 2020, 18:35 ricksaccous @luizcmarin lol no problem, hope you are enjoying it
# Jan 23rd 2020, 18:34 luizcmarin @ricksaccous
# Jan 23rd 2020, 18:34 luizcmarin you told me one day to try to get out of my comfort zone and try to do something for ecommerce with cake .... well, i'm learning a lot for doing this. thanks
# Jan 23rd 2020, 18:33 ricksaccous and in your controller it will come back as part of $this->getRequest()->getData() or as part of the patched entity (if it's accessible)
# Jan 23rd 2020, 18:33 ricksaccous $this->Form->control('somecheckbox', ['type' => 'checkbox']);
# Jan 23rd 2020, 18:32 ricksaccous you just create a form control in the edit.php
# Jan 23rd 2020, 18:32 luizcmarin where I should put the public $ removerFoto1 = 0 statement; to be seen in both edit.php and the controller?
# Jan 23rd 2020, 18:32 ricksaccous and look for the data in the controller...
# Jan 23rd 2020, 18:32 ricksaccous you can simply create a form control type checkbox and name it whateve ryou want
# Jan 23rd 2020, 18:30 luizcmarin in fact, I think I put the variable declaration in the wrong place ...
# Jan 23rd 2020, 18:28 luizcmarin Hi, I want to create a variable, type checkbox, there is no need to be a database field. For example, on the edit screen I uploaded an image. If the user wishes, he can check the "Remove image" checkbox on the editing screen so that I can take the necessary action on the controller. What is that called in the cake? Or is there another better alternative?
# Jan 23rd 2020, 18:27 ricksaccous but anyway, as long as i can help someone get something that works
# Jan 23rd 2020, 18:27 ricksaccous or an event
# Jan 23rd 2020, 18:27 ricksaccous would kind of be nice if he had a callback hook that could be implemented on failure though
# Jan 23rd 2020, 18:27 ricksaccous but yeah just scanning it with a cron every x minutes seems like an easy solution
# Jan 23rd 2020, 18:26 ricksaccous unfortunately i can't implement it because i have to work on another project
# Jan 23rd 2020, 18:26 ricksaccous @challgren that's a solution i thought of as well, lol
# Jan 23rd 2020, 18:22 challgren @ricksaccous I have a regular Command that looks at the queue table and when theres 15 failures it emails me non queue
# Jan 23rd 2020, 18:05 ricksaccous has anyone done anything in https://github.com/dereuromark/cakephp-queue like send an email on task failure?
# Jan 23rd 2020, 16:46 neothermic yes
# Jan 23rd 2020, 16:46 admad @neothermic (R) means reserved :)
# Jan 23rd 2020, 16:43 admad `groups`
# Jan 23rd 2020, 16:34 neothermic ahh, it's only an issue if it's got `(R)` in the name in the list
# Jan 23rd 2020, 16:33 jotpe I'll just rename all my table fields to xyz1235
# Jan 23rd 2020, 16:32 neothermic `inactive` ¬_¬
# Jan 23rd 2020, 16:32 neothermic those are going to break a few things
# Jan 23rd 2020, 16:32 neothermic `active`, `admin`
# Jan 23rd 2020, 16:32 neothermic https://dev.mysql.com/doc/refman/8.0/en/keywords.html#keywords-new-in-current-series
# Jan 23rd 2020, 16:32 neothermic wow, they added a bunch in 8
# Jan 23rd 2020, 16:30 jotpe grrrr
# Jan 23rd 2020, 16:29 neothermic `RANK (R); added in 8.0.2 (reserved)`
# Jan 23rd 2020, 16:29 neon1024 @jotpe Oh, nice find :clap:
# Jan 23rd 2020, 16:29 jotpe wtf. Took me ages to solve this: since MySQL 8 `rank()` is a keyword. For that reason, my local dev env does not work @neon1024
# Jan 23rd 2020, 16:28 neothermic aha, but I can pass label as an array, and that'll do it
# Jan 23rd 2020, 16:23 neothermic ah, boo, the bootstrap-ui doesn't support labelOptions :|
# Jan 23rd 2020, 16:01 slackebot though what the right way would be...
# Jan 23rd 2020, 16:01 ndm As you can see in the stacktrace, it happens when retrieving the target models for associations. So maybe your CMS models do not have associations, or the table classes already exists and have the CMS connection set as default. And/or the table classes for the associations for your pdfPlatform connection already exist and don't have their default connection changed. That's probably something that would need to be fixed in bake anyhow, not sure
# Jan 23rd 2020, 15:54 k4t if I rename "PdfPlatform" source to "default" it will work of course