Log message #4201507

# At Username Text
# Sep 4th 2019, 09:42 val thanks
# Sep 4th 2019, 09:38 neon1024 Yeah, I’d agree with @dereuromark `beforeMarshal`
# Sep 4th 2019, 09:28 dereuromark Looking at either one, you should be able to retrieve beforeMarshal() as applicable.
# Sep 4th 2019, 09:26 val Nothing is found for "beforeValidate" in 3.x cookbook
# Sep 4th 2019, 09:23 dereuromark See docs or https://github.com/dereuromark/executionorder
# Sep 4th 2019, 09:23 val Hi, there is beforeValidate callback in 2.x. What it has been replaced with in 3.x?
# Sep 4th 2019, 08:01 jeremy.halin I've tried by overriding property getter in entity, but it's never empty because `Translate` behavior will get content from original table if current locale is empty. I want to force a specific locale. I can force it but then, how do I check if there is content or not.
# Sep 4th 2019, 07:59 jeremy.halin For `Translate` behavior, is there any way to set fallback language ? For example if locale is set to `es_ES` but no translation are available for this language, it will default to `App.defaultLocale` which means it will get data directly from original table (and not `i18n`). What if I want to display `fr_FR` when `es_ES` is not available ?
# Sep 4th 2019, 07:56 jeremy.halin Hi ! :wave:
# Sep 4th 2019, 07:13 COOurb yo
# Sep 4th 2019, 07:12 alexdd55976 good morning
# Sep 4th 2019, 07:10 COOurb so based on this id I'm passing extra data to proceed
# Sep 4th 2019, 07:09 COOurb or id
# Sep 4th 2019, 07:09 COOurb every droplist has it's own name
# Sep 4th 2019, 07:09 COOurb again, I have several droplists
# Sep 4th 2019, 07:08 COOurb because I need to tie different enities
# Sep 4th 2019, 07:07 COOurb my goal is to send request with structured data, like this request['field1'=>'value1', 'field2'=>'value2', 'fieldset1'=>['fs1'=>'val1', 'fs2'=>'val2']]
# Sep 4th 2019, 07:06 spriz I am not sure I understand your goal - but did you try the `'multiple' => true` from https://book.cakephp.org/3.0/en/views/helpers/form.html#options-for-select-checkbox-and-radio-controls ? :slightly_smiling_face:
# Sep 4th 2019, 07:04 COOurb I can use javascript for it, but before I wanna know if I can make it without js
# Sep 4th 2019, 07:03 COOurb yea, but I have several dropdowns
# Sep 4th 2019, 07:03 spriz COOurb like a multiple select?
# Sep 4th 2019, 07:01 COOurb like we have regular fields that are scalar and make something like array of such fields under one name
# Sep 4th 2019, 06:59 COOurb hey, is there any way to send (from form) several options in array/named array?
# Sep 4th 2019, 06:59 javier.villanueva ty dudes
# Sep 4th 2019, 06:59 javier.villanueva yes
# Sep 4th 2019, 06:59 admad "optimal solutions" are always about effort vs reward, not what you run the fastest :slightly_smiling_face:
# Sep 4th 2019, 06:58 javier.villanueva i keep that
# Sep 4th 2019, 06:58 javier.villanueva ok
# Sep 4th 2019, 06:57 admad even with 100 controllers there is hardly going to be enough bump in page load time to annoy the user
# Sep 4th 2019, 06:57 admad if you want to split hairs about performance then retrieving from cache is gonna be faster then from db :slightly_smiling_face:
# Sep 4th 2019, 06:56 admad no need to use db
# Sep 4th 2019, 06:55 admad then format the results properly and cache it
# Sep 4th 2019, 06:55 conehead @javier.villanueva Then you should not ask for an optimal solution :P Using reflection is imho probably easier and dirtier to implement. Notably faster probably not
# Sep 4th 2019, 06:54 javier.villanueva ok
# Sep 4th 2019, 06:54 javier.villanueva :upside_down_face:
# Sep 4th 2019, 06:52 conehead :(
# Sep 4th 2019, 06:52 admad oh it's for villa :P
# Sep 4th 2019, 06:52 slackebot ~tell conehead about premature
# Sep 4th 2019, 06:52 slackebot Command sent from Slack by admad:
# Sep 4th 2019, 06:51 admad kiwi_11: google "jquery dirtyforms"
# Sep 4th 2019, 06:51 javier.villanueva Its not a problem really (in my case), because is a superadmin feature... I think in performance