Log message #4117001

# At Username Text
# Feb 14th 2018, 09:34 k4t I think it is not supported by cake at the moment
# Feb 14th 2018, 09:33 k4t no, sortBy can take only fieldname or callback
# Feb 14th 2018, 09:32 Guest65 slackebot I think you can use array in sort key
# Feb 14th 2018, 09:32 k4t Hi guys, how I can sort Collection with multiple fields?
# Feb 14th 2018, 09:31 Guest65 Quick question. If I have a table "alphas_betas", should foreign key to its id be called "aphas_beta_id" or "aplha_beta_id"?
# Feb 14th 2018, 09:30 Guest65 Hi
# Feb 14th 2018, 08:47 admad in general to debug saving issues debug() the patched entity
# Feb 14th 2018, 08:45 admad if the former make sure "roles" is in accessible list in the User entity
# Feb 14th 2018, 08:44 admad LubosR: do you have problem just saving the associations or other fields too?
# Feb 14th 2018, 08:43 neon1024 Morning
# Feb 14th 2018, 08:37 LubosR Looks like my form is not saved even when I am not using crud :-/
# Feb 14th 2018, 08:32 LubosR Any ideas?
# Feb 14th 2018, 08:31 LubosR Here is how my method looks like and output of request data https://gist.github.com/LubosRemplik/88b8dcfe0c26a25baa6af2d7c0a1f4b0
# Feb 14th 2018, 08:25 LubosR In the UsersTable I have many to many association with Roles (works fine with find) and in Controller initialize where I am loading Crud plugin I am using relatedModels listener
# Feb 14th 2018, 08:24 LubosR I have form control like multiple select here https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-inputs-for-associated-data with roles._ids
# Feb 14th 2018, 08:24 LubosR Hey all, i have problem to save many to many data with crud plugin - anybody give me a hint?
# Feb 14th 2018, 08:08 hmic moin
# Feb 13th 2018, 22:10 ahmed_Bodi never had to do that with the DashedRoute
# Feb 13th 2018, 22:10 ahmed_Bodi got it, For some reason had to move the definition of the prefix sope above the definition of the / scope
# Feb 13th 2018, 21:51 ahmed_Bodi anyone?
# Feb 13th 2018, 21:49 ahmed_Bodi | admin:dashboard:index | /:lang/admin | {"controller":"Dashboard","action":"index","prefix":"admin","plugin":null} |
# Feb 13th 2018, 21:49 ahmed_Bodi this is the route from the ./bin/cake routes command
# Feb 13th 2018, 21:42 ahmed_Bodi its like its ignoring the prefix
# Feb 13th 2018, 21:37 ahmed_Bodi this is under the router scope /
# Feb 13th 2018, 21:37 ahmed_Bodi $routes->connect('/admin', ['controller' => 'Dashboard', 'action' => 'index', 'prefix' => 'admin'], ['routeClass' => 'ADmad/I18n.I18nRoute']); shows missing controller error
# Feb 13th 2018, 21:37 ahmed_Bodi Having an issue with prefixed routes wondering if you have any idea
# Feb 13th 2018, 21:36 ahmed_Bodi @admad around?
# Feb 13th 2018, 20:55 admad madrid998: http://www.icu-project.org/apiref/icu4c/classSimpleDateFormat.html#details
# Feb 13th 2018, 20:53 madrid998 Where do I find the valid format options for setLocalFormat? There does not appear to be an correlation between PHP's date formating characters with Cronos'
# Feb 13th 2018, 20:48 madrid998 Should setLocaleFormat('c') now work to set the default? Does the syntax of the format string not match php's DateTime formats?
# Feb 13th 2018, 20:02 slackebot different environments.
# Feb 13th 2018, 20:02 jameg83 @hmic (IRC) I told a fib earlier, when I run my template as html the image doesn’t load. If I change my img src to (http://localhost:8765/img/image.png) when running as a html file it works. When running with the .pdf extension I have to change the img src to (/home/jamesg83/NetBeansProjects/project/webroot/img/image.png) and that works fine too. If I can’t find a solution I’ll have to extend the html helpers to write my paths for the
# Feb 13th 2018, 17:04 night_wulfe I feel like the model is the best place because of fat model, but feel like having a tight coupling with the Message and the model knowing how to convert it to entities is wrong, so I'm struggling.
# Feb 13th 2018, 16:56 slackebot transition goes from the Message object to the corresponding models. Should the controller be responsible for calling all the various model Save calls, or should a single "parent" model have a save method which takes an instance of the Message object?
# Feb 13th 2018, 16:56 night_wulfe Another question; I have an object (Message) that's composed of several smaller objects. Message objects are created when deserialized from an XML representation. The specific types and count of the child objects depend upon the type of message being deserialized. I have all this object/deserialization/serialization code implemented and working. These objects are to be then stored in database tables. My question relates to how the
# Feb 13th 2018, 16:48 night_wulfe Thanks
# Feb 13th 2018, 16:48 night_wulfe That makes sense. I didn't think about the find/save stuff implicitly doing the relationship tests.
# Feb 13th 2018, 16:48 dereuromark makes it a bit quicker, since I am mainly interested in validation on save, and other hooks working properly. for regression protection.
# Feb 13th 2018, 16:47 dereuromark I rather test find+save on those (which implicitly tests those then)
# Feb 13th 2018, 16:45 night_wulfe Does anyone unit test their model relationships? I started doing it, but it feels like I'm just unit testing the framework.
# Feb 13th 2018, 16:05 clementcrownrise thanks @hmic