Log message #4179853

# At Username Text
# Mar 15th 2019, 10:52 half2me what I tried doing is making a `latestComment` association, where I specified a custom `finder`
# Mar 15th 2019, 10:51 half2me I want to make a hasOne association on Articles, which always returns the last comment posted for that article
# Mar 15th 2019, 10:51 half2me Suppose you have Authors, Articles, Comments (comments have a posted date)
# Mar 15th 2019, 10:50 half2me @berarma back to my previous question, I'll explain the scenario I have, which could be a pretty common use case, but I'm unsure of the best way to implement it
# Mar 15th 2019, 10:39 dereuromark mixing input from URL params as arguments with this seems like a really bad idea.
# Mar 15th 2019, 10:39 dereuromark I dont like how controller actions are injected here, I would expect only the controller to have the service as attribute.
# Mar 15th 2019, 10:36 dakota if it was done at a cakefest
# Mar 15th 2019, 10:36 dakota vaguely. It should be on the youtube channel
# Mar 15th 2019, 10:36 dakota For users, there is http://github.com/cakedc/users, for mail just use a service like mailgun and for invoicing integrate into something like freshbooks :slightly_smiling_face:
# Mar 15th 2019, 10:36 neon1024 Anyone remember the talk that @lorenzo did about implementing a DI container? I’m certain he used https://github.com/lorenzo/piping-bag
# Mar 15th 2019, 10:34 dakota because buying random scripts always works so well :,)
# Mar 15th 2019, 10:25 acosonic They say it's same thing for them switching from cake 2 -> Cake 3, or cake 2 -> Laravel, I have 2 seniors and 1 medior, medior does not care, but seniors want to give Laravel a try, since they were "testing" cake 3 yesterday and decided to migrate cake 2 code, now they want to just buy laravel scripts and try to merge them into 1 system...
# Mar 15th 2019, 10:23 half2me @acosonic is that the only reason why they want to switch to Laravel?
# Mar 15th 2019, 10:21 narendravaghela @acosonic Same happened with me, my past agency started to adopt Laravel and I left the agency :)
# Mar 15th 2019, 10:18 acosonic I say it's just good marketing, we will regret it when it comes to some advanced debugging... https://codecanyon.net/item/classic-invoicer/6193251 and https://codecanyon.net/item/acelle-email-marketing-web-application/17796082 also https://codecanyon.net/item/vanguard-advanced-php-login-and-user-management/14521866 perhaps there are cake 3 clones of that?
# Mar 15th 2019, 10:16 acosonic I know, but they are now purchasing some 3 stuff from codecanyon to test it, they say they will pay from their own pocket... I can share what exactly are they purchasing, if you care...
# Mar 15th 2019, 10:10 dakota But Cake is so much better :slightly_smiling_face:
# Mar 15th 2019, 10:03 acosonic Now my team wants to ditch cake 3 and go to Laravel :( they say they don't think that learning curve is too much different, and they insist on Laravel
# Mar 15th 2019, 09:53 half2me that explains a lot, thanks @berarma
# Mar 15th 2019, 09:52 berarma Have you read https://book.cakephp.org/3.0/en/orm/associations.html#default-association-conditions ?
# Mar 15th 2019, 09:52 half2me but I think it might be the same for hasMany as well
# Mar 15th 2019, 09:52 half2me hasOne
# Mar 15th 2019, 09:52 berarma @half2me, which association type?
# Mar 15th 2019, 09:52 dereuromark ping @lorenzo
# Mar 15th 2019, 09:52 half2me or anyone :slightly_smiling_face:
# Mar 15th 2019, 09:51 dereuromark I am not the god of ORM :slightly_smiling_face: dunno
# Mar 15th 2019, 09:51 half2me @dereuromark?
# Mar 15th 2019, 09:51 half2me Is this intended behavior, or a bug?
# Mar 15th 2019, 09:51 dereuromark Mint at least looks close to windows, so I guess that will help you :)
# Mar 15th 2019, 09:51 half2me then it works
# Mar 15th 2019, 09:51 half2me I have to change the `strategy` option from join to select
# Mar 15th 2019, 09:50 half2me If I use `orderDesc()` or `limit()` in the finder, it doesn't show up in the generated query
# Mar 15th 2019, 09:50 dereuromark Mint
# Mar 15th 2019, 09:49 half2me When defining an association, there is the option to specify a `finder`
# Mar 15th 2019, 09:49 berarma No
# Mar 15th 2019, 09:49 kgb.acct.personal Not the Ubuntu one?
# Mar 15th 2019, 09:49 berarma Debian
# Mar 15th 2019, 09:48 kgb.acct.personal What distro are you using?
# Mar 15th 2019, 09:47 berarma It's a pain having to writing one-shot shells for such small tasks.
# Mar 15th 2019, 09:46 berarma From Windows? It's totally worth it if you like it. I couldn't work on Windows.
# Mar 15th 2019, 09:45 kgb.acct.personal Is it worth switching to linux for development?