Log message #4180735

# At Username Text
# 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.
# Mar 25th 2019, 17:57 ricksaccous etc
# Mar 25th 2019, 17:57 ricksaccous '2009' => '2009'
# Mar 25th 2019, 17:57 ricksaccous remember that an array of options of key value pairs for the control need to be like
# Mar 25th 2019, 17:53 ricksaccous lol
# Mar 25th 2019, 17:53 ricksaccous yeah
# Mar 25th 2019, 17:53 ricksaccous you could make a model method like buildYearsForController or something
# Mar 25th 2019, 17:52 this.impetus ok. neat. not one solution but 3 haha. thanks
# Mar 25th 2019, 17:52 this.impetus oh yes I do
# Mar 25th 2019, 17:52 this.impetus I don't understand that last one.
# Mar 25th 2019, 17:52 ricksaccous whatever floats your boat
# Mar 25th 2019, 17:52 ricksaccous you could also build the options in the model and pass them to the controller
# Mar 25th 2019, 17:52 this.impetus something I know how to do, even :P
# Mar 25th 2019, 17:52 this.impetus nice
# Mar 25th 2019, 17:52 ricksaccous so you can make it generalizable either way
# Mar 25th 2019, 17:52 this.impetus ^^
# Mar 25th 2019, 17:51 ricksaccous well the form select could also be made into an element
# Mar 25th 2019, 17:51 this.impetus kk, I am going to have this crop up in about a dozen other models so the beforeMarshall() solution sounds more generalizable. gonna go see if I can make it work
# Mar 25th 2019, 17:50 ricksaccous or you could do it the other way i suggested