Log message #4187333

# At Username Text
# May 24th 2019, 10:56 neon1024 Especially the post-competition deduction of 5 points
# May 24th 2019, 10:56 neon1024 Eurovision was an acute and hilarious reflection of our new position in Europe
# May 24th 2019, 10:56 neon1024 Our political situation is embarassing
# May 24th 2019, 10:24 neothermic @neon1024 it's May's new job. max length is max length! :P
# May 24th 2019, 10:20 neon1024 Yep, that’s a bug
# May 24th 2019, 10:20 neon1024 `Notice (8): Undefined offset: 0 [CORE/src/View/Form/EntityContext.php, line 473]`
# May 24th 2019, 09:58 neon1024 :man-shrugging:
# May 24th 2019, 09:58 neon1024 What is the max length?
# May 24th 2019, 09:58 neon1024 Why does bake make this rule? `->add('name', 'maxLength', ['rule' => 'maxLength'])`
# May 24th 2019, 08:19 kgb.acct.personal How do I enable FOR SHARE locking on Cake 2?
# May 24th 2019, 08:11 ondrej.nedvidek https://book.cakephp.org/3.0/en/core-libraries/validation.html#conditional-validation
# May 24th 2019, 08:11 ondrej.nedvidek found the answer
# May 24th 2019, 08:04 ondrej.nedvidek When I build custom validation rule (no matter if standalone function and table provider or closure) the function is called `only` if the field is `not empty`. But my aim is to check if the field is empty only if other field is set (checkbox checked). So I cannot use standard allowEmptyString false did anybody experienced same problem?
# May 23rd 2019, 21:38 niel45 n/m found it
# May 23rd 2019, 21:35 niel45 Where should custom validation rules be added?
# May 23rd 2019, 19:11 ricksaccous yeah i read that
# May 23rd 2019, 19:06 niel45 look at https://book.cakephp.org/3.0/en/orm/query-builder.html about 2/3 of the way down the page under 'Advanced Conditions'
# May 23rd 2019, 19:05 ricksaccous hmph
# May 23rd 2019, 19:05 ricksaccous but there's probably a better way
# May 23rd 2019, 19:05 ricksaccous i suppose i could just do a separate query on the matching table and get all the proper ids from there and do or equals or or in
# May 23rd 2019, 19:04 ricksaccous cause it always returns true since the subquery is doing a find on all
# May 23rd 2019, 19:03 ricksaccous This obviously doesn't work
# May 23rd 2019, 19:02 ricksaccous right now i'm doing the query expression thing and confused
# May 23rd 2019, 19:01 ricksaccous where you want or Model.value => 1 OR matching('SomeModel', function ($query)
# May 23rd 2019, 19:01 ricksaccous how do you get an or condition
# May 23rd 2019, 18:10 destinydriven Seen
# May 23rd 2019, 18:08 ricksaccous i don't believe so....
# May 23rd 2019, 18:08 destinydriven @ricksaccous there’s no overhead with model chaining?
# May 23rd 2019, 18:08 ricksaccous @destinydriven that's up to you dyud
# May 23rd 2019, 18:07 destinydriven Model binding/chaining up to 5 or 6 models vs just ClassRegistry::init() ? At what point does it make sense to just abandon model chaining?
# May 23rd 2019, 17:17 prev.aurelien Hi, any way to refresh that :relaxed:?
# May 23rd 2019, 16:06 this.impetus ...just gently checking to see if anyone's around yet, still can't figure out what's wrong re: post above
# May 23rd 2019, 15:13 slackebot the model is ``` $validator ->boolean('public') ->requirePresence('public', 'create') ->notEmpty('public', 'create');```
# May 23rd 2019, 15:13 this.impetus Hey guys, stuck on trouble shooting what must be a simple problem. Have a boolean field (tiny int) in my `tags` table, `public`. When creating a new tag or editing one, this checkbox isn't respected. If I manually set `public` to true in the database, editing it back to false does nothing, but all new tags default to false. The field is being generated with cake's code, ie. `<?= $this->Form->control('public');?>`, and the validator in
# May 23rd 2019, 11:01 challgren WYSIWYG more or less
# May 23rd 2019, 10:48 neon1024 Like a person designer?
# May 23rd 2019, 09:23 challgren Anyone know of a decent email HTML designer?
# May 23rd 2019, 09:06 neon1024 So I’m going to try and overwrite the templates in the configuration
# May 23rd 2019, 09:05 neon1024 I have opened an issue about it for discussion, but I need to resolve my ticket in the meantime as a discussion and release will be too slow
# May 23rd 2019, 09:05 neon1024 They didn’t, it’s an optional class which has been, in my opinion, mistakenly implemented into the templates in the plugin
# May 23rd 2019, 08:53 challgren When did they get rid of the labels? In the BS4 version?