Log message #4180421

# At Username Text
# Mar 22nd 2019, 15:00 ricksaccous if you are not too concerned about that then go for it
# Mar 22nd 2019, 15:00 ricksaccous using finders is great, there are just limitations when you use them on associations regarding pagination
# Mar 22nd 2019, 15:00 hollistergraham123 I’ve never seen a guide suggesting it which leads me to think it’s not best practice but I’m curious as to why not. Seems like it would save on coding
# Mar 22nd 2019, 14:59 slackebot2 and don’t have to keep rewriting boiler plate code. Or is there a reason not to do that
# Mar 22nd 2019, 14:59 hollistergraham123 Right, so the query is always scope by wether they are in an active store or they are in the dashboard view which pulls back all the data from all stores they are associated with. Right now I have to write that where clause into every single query I write because they all need to be scoped that way. My question is, is that the best way to do it. Or should I write a custom finder to use on all associations so they are auto scoped
# Mar 22nd 2019, 14:37 ricksaccous I'd also be wary of using finders to define associations, it's probably better to use conditions when you can
# Mar 22nd 2019, 14:35 ricksaccous and that you will always change the query based on the active store
# Mar 22nd 2019, 14:35 ricksaccous or are you saying you always will pass the active store to the query
# Mar 22nd 2019, 14:34 ricksaccous you need to be more specific about what you want from a query perspective, do you want to filter by conditions in an association?
# Mar 22nd 2019, 14:33 slackebot2 <hollistergraham123>
# Mar 22nd 2019, 14:31 hollistergraham123 Hey, I had a quick question about defining associations. I have a company that hasmany stores. And users which belongToOne company and belongToMany stores. Then from there the stores basically own everything along with a user association for actions. I know that when defining relationships in the table file you can define a custom finder method. Basically every query I write has to include a scoping statement of
# Mar 22nd 2019, 14:24 devito thank
# Mar 22nd 2019, 14:22 dereuromark read the current migration guide, as well as the wiki 4.0 milestone/log
# Mar 22nd 2019, 14:16 devito is there a 4.0 feature list out yet by chance?
# Mar 22nd 2019, 13:49 hollistergraham123 Will do! Thanks.
# Mar 22nd 2019, 13:47 ricksaccous if you have any questions feel free to ask, be sure to read the docs/cookbook
# Mar 22nd 2019, 13:47 ricksaccous just kidding, nice to have you
# Mar 22nd 2019, 13:46 ricksaccous this is our secret clubhouse
# Mar 22nd 2019, 13:42 hollistergraham123 Hey guys! Just found the slack channel for Cakephp. Thanks for having me!
# Mar 22nd 2019, 13:28 dereuromark we all went there once ;)
# Mar 22nd 2019, 12:05 neon1024 I’ve got caught up in chasing deprecations and I think that was a bad choice on my part
# Mar 22nd 2019, 12:00 dereuromark I just kept all my old methods :slightly_smiling_face: Dont bother changing, especially since the added syntax also isnt quite what I expect.
# Mar 22nd 2019, 11:55 neon1024 To me, that’s a BC break to me and not a minor release
# Mar 22nd 2019, 11:54 neon1024 I have to invert all my validation logic!
# Mar 22nd 2019, 11:54 neon1024 I know there is a ticket open, but can I just again state that the swap from implicit validation api method names to the new allowEmptyThing is infuriating ]:(
# Mar 22nd 2019, 11:50 neon1024 Hmm, seems to still work and is not deprecated :thinking_face:
# Mar 22nd 2019, 11:46 neon1024 `$this->_table->getValidator()->isEmptyAllowed($field, false)`
# Mar 22nd 2019, 11:46 neon1024 I’ve updated to 3.7 and fixed my deprecations, so now the check I’m using doesn’t work
# Mar 22nd 2019, 11:46 neon1024 Anyone know how I can check if a field has validation rules which allow it to be empty
# Mar 22nd 2019, 11:34 steinkel hi, we did some work on the contents for the certification in cake3, we are not close to release it yet and depending on cake4 release dates, we might want to refactor it for 4
# Mar 22nd 2019, 11:24 emilushi @neon1024 Thanks for the replay
# Mar 22nd 2019, 11:23 neon1024 @steinkel Would be the person to check with :slightly_smiling_face:
# Mar 22nd 2019, 11:23 neon1024 @emilushi Probably not, with CakePHP 4 coming
# Mar 22nd 2019, 11:16 emilushi Does anyone know if there will be anything about CakePHP 3 here: https://certification.cakephp.org/
# Mar 22nd 2019, 09:48 challgren I was thinking of going to datetime since that converts into Chronos Datetime
# Mar 22nd 2019, 09:46 berarma @challgren https://stackoverflow.com/a/602038/1714120
# Mar 22nd 2019, 09:45 berarma Morning
# Mar 22nd 2019, 09:28 challgren Yeah sometimes I use datetime sometimes I use datetime so Im not really sure
# Mar 22nd 2019, 09:27 neon1024 Plus, datetime is more readable when looking at the data directly imho
# Mar 22nd 2019, 09:27 neon1024 If you’re displaying it
# Mar 22nd 2019, 09:27 neon1024 I don’t know if timestamp is marshalled into a DateTime object though