Log message #4223665

# At Username Text
# Jan 23rd 2020, 20:15 challgren For example your hasMany is Comments, and you have a Post, with what your talking about you would have 30 duplicate Posts for the 30 comments
# Jan 23rd 2020, 20:14 challgren And not duplicating the original data
# Jan 23rd 2020, 20:14 challgren How would you do it in regular SQL without 2 queries?
# Jan 23rd 2020, 20:14 k4t it will still generate two queries
# Jan 23rd 2020, 20:14 challgren But you can change the strategy https://book.cakephp.org/3/en/orm/associations.html#hasmany-associations
# Jan 23rd 2020, 20:13 challgren How else would you do it without duplicating the original table entries in the results?
# Jan 23rd 2020, 20:05 k4t is it possible to change it?
# Jan 23rd 2020, 20:05 k4t Why CakePHP 3 for hasMany relations generates 2 selects instead of one with JOIN?
# Jan 23rd 2020, 19:19 challgren You could also do a Plugin approach too. It just really depends on what your trying to accomplish specifically
# 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...