Log message #4180753

# At Username Text
# Mar 25th 2019, 20:01 vjnvisakh when is it launching
# Mar 25th 2019, 20:00 vjnvisakh what is new in cakephp 4
# Mar 25th 2019, 19:58 devito is that valid?
# Mar 25th 2019, 19:58 devito ive got some crazy query that i want to use as a where condition. does a bunch of mat can I have where=>[“(mySqlEquation) >“=>3]
# Mar 25th 2019, 19:56 vjnvisakh Hey
# Mar 25th 2019, 19:40 daniel.upshaw I might have found a way to do it.... Make templates with only `<?= $html ?>` and `<?= $text ?>` and just send it the entire contents
# Mar 25th 2019, 19:33 daniel.upshaw Although, that was in 2015
# Mar 25th 2019, 19:33 daniel.upshaw Without using .ctp templates
# Mar 25th 2019, 19:32 daniel.upshaw Looks like there's no straightforward way to set the Plain Text version and HTML version manually
# Mar 25th 2019, 19:32 daniel.upshaw https://stackoverflow.com/questions/32860252/cakephp-3-x-can-we-use-emailformat-both-without-using-template
# Mar 25th 2019, 19:31 ricksaccous yeah beforeMarshall
# Mar 25th 2019, 19:30 daniel.upshaw Here is the floatval() docs: https://www.php.net/manual/en/function.floatval.php
# Mar 25th 2019, 19:30 daniel.upshaw What's the mask plugin?
# Mar 25th 2019, 19:30 daniel.upshaw Starting a thread...
# Mar 25th 2019, 19:29 daniel.upshaw Is there any way to format before it goes to patchEntity?
# Mar 25th 2019, 19:26 ricksaccous if data['fieldname'] is set modify it as you wish
# Mar 25th 2019, 19:26 ricksaccous on the model
# Mar 25th 2019, 19:26 ricksaccous you can do it beforeMarshall
# Mar 25th 2019, 19:25 feLiruc daniel, I need to implement this on the controller or in the entity? any link to help me
# Mar 25th 2019, 19:25 daniel.upshaw But one or the other is simple by passing into `send($content)`.... Just not both
# Mar 25th 2019, 19:25 daniel.upshaw It looks like there's no straightforward way to send both HTML and Plaintext emails in Cake without using templates
# Mar 25th 2019, 19:24 daniel.upshaw Maybe floatval()? Or a preg_replace to reformat it
# Mar 25th 2019, 19:24 daniel.upshaw Can you do a number_format on it?
# Mar 25th 2019, 19:17 feLiruc Hello guys... the mask plugin I'm using is sending R$ 450.000,00 to the patchEntity but this field is a double field... What can I do in this case?
# Mar 25th 2019, 18:35 ricksaccous np
# Mar 25th 2019, 18:35 devito thanks man
# Mar 25th 2019, 18:35 devito word up
# Mar 25th 2019, 18:34 ricksaccous https://book.cakephp.org/3.0/en/orm/query-builder.html#advanced-conditions
# Mar 25th 2019, 18:34 ricksaccous let me link you
# Mar 25th 2019, 18:34 ricksaccous yeah it's in the book, and what you had looks right
# Mar 25th 2019, 18:33 devito but not finding anythign on this in the book…
# Mar 25th 2019, 18:33 devito sounds right in my head
# Mar 25th 2019, 18:32 ricksaccous ohhhhh uhhh, not sure let me seeee
# Mar 25th 2019, 18:32 devito im guess than or=>[[1,3],[3,4]] will check 1,3 or 3,4 ?
# Mar 25th 2019, 18:31 devito or=>[1,2,3,4,5] will check each item as an or
# Mar 25th 2019, 18:31 ricksaccous where(['OR'] => conditions, array of other conditions);
# Mar 25th 2019, 18:30 ricksaccous 'OR' => [], and is just regular where conditions
# Mar 25th 2019, 18:30 devito im looking to pass many pairs of and conditions inside the or clause
# Mar 25th 2019, 18:29 devito How do I do OR AND with the orm?
# Mar 25th 2019, 18:07 ricksaccous hehehe
# Mar 25th 2019, 18:06 this.impetus yup; I'm a front-end guy shoe-horned into this back-end nonsense.