Log message #4104924

# At Username Text
# Dec 19th 2017, 15:44 joop i see now your concept,load the $data[....][....] with calculated data(or wahtever you call now)
# Dec 19th 2017, 15:44 neon1024 You have to build it yourself if you want the complete url
# Dec 19th 2017, 15:44 neon1024 Nope
# Dec 19th 2017, 15:44 obinoob noob question whats the best way to get the Request URL $this->request as getUri() and it is possible to assemble it etc, I also know that Router has static methods etc but any method / property where i can get Request URL?
# Dec 19th 2017, 15:43 neon1024 Is that an autoloader issue?
# Dec 19th 2017, 15:43 neon1024 Can anyone tell me why this line fails because `class_exists()` fails, https://github.com/cakephp/cakephp/blob/master/src/Core/ObjectRegistry.php#L92
# Dec 19th 2017, 15:43 hmic so if you add the data you need before calling patchEntity - or sneaky like i do in the table - you are good
# Dec 19th 2017, 15:43 joop you pass a value for it
# Dec 19th 2017, 15:42 joop ui seee now
# Dec 19th 2017, 15:42 hmic it is actually just the array you pass to patchEntity
# Dec 19th 2017, 15:42 joop nooo
# Dec 19th 2017, 15:42 joop just because i thought $data[''....] is coming from the form
# Dec 19th 2017, 15:41 hmic if i would add the participant_type_id to the form as a hidden field, i'd not need that at all
# Dec 19th 2017, 15:41 hmic no. thats the whole idea of adding the type id there
# Dec 19th 2017, 15:40 joop but do you make it avaliable in the form?
# Dec 19th 2017, 15:39 joop okey i checking
# Dec 19th 2017, 15:38 hmic https://gist.github.com/hmic/ea8b558f0733ce3c8b7b75d9513db300
# Dec 19th 2017, 15:38 hmic here's an example:
# Dec 19th 2017, 15:38 joop now i use foreach to iterate on PatcEntities as Entity
# Dec 19th 2017, 15:38 hmic i do something similar, i think, not in the controller scope, for an associated entity
# Dec 19th 2017, 15:38 hmic if you do it before, the data will be available, if not - you get the idea :D
# Dec 19th 2017, 15:37 joop after PatchEntity
# Dec 19th 2017, 15:37 hmic so it will be available in $context['data'] too
# Dec 19th 2017, 15:36 hmic manually, before patchEntities?
# Dec 19th 2017, 15:36 joop and now if form is submitted i attached that foreig_key for the Entity(ies)
# Dec 19th 2017, 15:35 joop in the controller there is a patchEntities
# Dec 19th 2017, 15:34 hmic so where is get generated?
# Dec 19th 2017, 15:34 joop and for security i didnt want to use hidden field
# Dec 19th 2017, 15:32 joop thats why i dont pass it for the form
# Dec 19th 2017, 15:32 joop i come back,that field is not user definied but "calculated" automatically
# Dec 19th 2017, 15:21 joop thank you
# Dec 19th 2017, 15:21 hmic you are welcome joop!
# Dec 19th 2017, 15:19 joop thank you for your help as respecting once again your time and effort
# Dec 19th 2017, 15:19 joop i meant by the complexity,i manually attached that property in the controller,but mybe i will pass some way for the form
# Dec 19th 2017, 15:18 hmic joop: the data holds all the data you submitted in your form, no matter how complex ;-)
# Dec 19th 2017, 15:17 hmic joop: should be $context['data']['review_id'] i suppose
# Dec 19th 2017, 15:17 joop because it is acomplex,hasMany association
# Dec 19th 2017, 15:17 neon1024 The file exists and is in the right namespace
# Dec 19th 2017, 15:16 neon1024 Anyone give me a pointer on why my test is failing with `Cake\ORM\Exception\MissingBehaviorException: Behavior class SluggableBehavior could not be found.` my test plugin is being loaded, but the behaviour isn’t for some reason
# Dec 19th 2017, 15:16 joop well the main problem is it is not in the form,it is manually attached in the controller
# Dec 19th 2017, 15:16 joop thank you aro for admit your fault