Log message #4154970

# At Username Text
# Jul 2nd 2018, 11:13 birdy247 The collation
# Jul 2nd 2018, 11:13 birdy247 Is this to do with encoding?
# Jul 2nd 2018, 11:13 birdy247 The guy is using a Mac
# Jul 2nd 2018, 11:12 birdy247 Incorrect string value: '\xE2\x80\xAD077.
# Jul 2nd 2018, 11:12 birdy247 Getting an odd SQL error on prod, but I cant replicate it
# Jul 2nd 2018, 10:43 unclezoot good morning - when initiating the Time helper, where is the correct place to configure the 'niceFormat' property?
# Jul 2nd 2018, 10:40 cielo2 ok, i read about ->toList(), but in my case, how i can aply this ?
# Jul 2nd 2018, 10:36 cielo2 how can i solve this ?
# Jul 2nd 2018, 10:35 cielo2 i migrate from php5.6 to php7.2 and a classical row goes on error: "$this->set('books', $this->paginate($query, ['limit' => 10]));"
# Jul 2nd 2018, 10:34 saeideng php 7.2
# Jul 2nd 2018, 10:33 saeideng first use `->toList()` before using `count()`
# Jul 2nd 2018, 10:27 lorenzo when doing what?
# Jul 2nd 2018, 10:20 cielo2 somebody has a solution for: cakephp3 Parameter must be an array or an object that implements Countable ?
# Jul 2nd 2018, 10:19 cielo2 hi all
# Jul 2nd 2018, 10:10 tunafish I'll discuss things with my team when we get to it. Thanks for the help!
# Jul 2nd 2018, 10:08 tunafish True, true
# Jul 2nd 2018, 10:08 josbeir best to make specific methods for the secure stuff and use those
# Jul 2nd 2018, 10:07 josbeir i get what you are trying to achieve @tunafish but if you are going to define that stuff in a too explicit way it will eventually work against you in the long run
# Jul 2nd 2018, 10:06 slackebot4 !
# Jul 2nd 2018, 10:06 slackebot4 Command sent from Slack by josbeir:
# Jul 2nd 2018, 10:06 tunafish Best. Method. Ever. :P
# Jul 2nd 2018, 10:06 josbeir saveMethod => 'safeSave' :P
# Jul 2nd 2018, 10:06 josbeir if you use crud you can easily change the save method of the actions you are using
# Jul 2nd 2018, 10:05 tunafish I'm guessing plugins like CRUD won't use those, unless you mean overwriting the normal patchEntity?
# Jul 2nd 2018, 10:04 josbeir @tunafish why not make a patchEntity method specifically for your api/front end stuff and always use that method when patching your entity
# Jul 2nd 2018, 10:03 saeideng overflow
# Jul 2nd 2018, 10:03 dereuromark https://github.com/cakephp/cakephp/pull/12315#issuecomment-401745356
# Jul 2nd 2018, 10:03 josbeir thefuck :)
# Jul 2nd 2018, 10:02 dereuromark Big fan of CLI exit code `-1073741819`..^^
# Jul 2nd 2018, 10:00 tunafish Pretty sure someone in the team is going to forget that sometime, which should trigger some kind of fallback
# Jul 2nd 2018, 09:59 tunafish Stuff like fieldlist works, but you have to remember it when creating an entity
# Jul 2nd 2018, 09:59 tunafish I'm looking for something which ultimately prevents empty columns written to the database
# Jul 2nd 2018, 09:58 tunafish beforeMarshal might work
# Jul 2nd 2018, 09:53 josbeir => https://book.cakephp.org/3.0/en/orm/saving-data.html#avoiding-property-mass-assignment-attacks
# Jul 2nd 2018, 09:53 josbeir or @tunafish you could use 'fieldList' argument when patching your entity
# Jul 2nd 2018, 09:50 josbeir why not add some beforeValidate or beforeMarshal and throw an exception of someone tries to validate such field?
# Jul 2nd 2018, 09:47 tunafish but isAccessible() would work as well
# Jul 2nd 2018, 09:47 tunafish I was just wondering if there is a built-in way to check if attempts are made to set any of those properties
# Jul 2nd 2018, 09:46 tunafish Yeah, I thought its supposed to behave that way
# Jul 2nd 2018, 09:42 josbeir you can run isAccessible('property') or something and throw an exception
# Jul 2nd 2018, 09:39 josbeir so its normal behavior