Log message #4223656

# At Username Text
# Jan 23rd 2020, 19:18 mocelle Hm... Good idea. I will try it
# Jan 23rd 2020, 19:18 challgren You could also use Traits
# Jan 23rd 2020, 19:17 challgren Like validators?
# Jan 23rd 2020, 19:17 mocelle Trying to separate BL to own directory
# Jan 23rd 2020, 19:14 challgren I’ve never really seen a use case that would require an extended table except in CakeDC/Users plugin
# Jan 23rd 2020, 19:14 challgren What are you trying to accomplish?
# Jan 23rd 2020, 19:13 mocelle Extended class should be inside Model/Table directory? I became ‚Cannot describe Test It has 0 columns
# Jan 23rd 2020, 19:11 luizcmarin I will keep informed
# Jan 23rd 2020, 19:10 luizcmarin tomorrow I will test this
# Jan 23rd 2020, 19:10 luizcmarin :man-facepalming: thanks @challgren. Amanhã vou testar isso
# Jan 23rd 2020, 19:08 challgren All it means is the code coverage decreased from the previous commit. Nothing to really worry about. If it was continuous-integration that would be a different story.
# Jan 23rd 2020, 19:06 challgren Did you hover over the x to see what failed?
# Jan 23rd 2020, 19:05 luizcmarin I haven't used it yet because of that .... I expected change here
# Jan 23rd 2020, 19:05 luizcmarin @challgren
# Jan 23rd 2020, 19:05 luizcmarin this has nothing to do? Because I think it was wrong. What does that mean?
# Jan 23rd 2020, 19:02 challgren https://github.com/UseMuffin/Sti/releases/tag/2.0.0-beta
# Jan 23rd 2020, 19:01 challgren Sti? Yes we fixed it up for you
# Jan 23rd 2020, 19:01 luizcmarin @challgren is it ok to use in cake 4?
# Jan 23rd 2020, 18:49 challgren https://github.com/UseMuffin/Sti might be useful too
# Jan 23rd 2020, 18:48 challgren MyOtherModel extends CustomerTable
# Jan 23rd 2020, 18:46 mocelle I trying to extend Model Table. For example: I have CustomerTable and I want to extend it. Is there way to extend Model Table?
# 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