Log message #4115518

# At Username Text
# Feb 8th 2018, 11:25 neon1024 Or more a question for the forums?
# Feb 8th 2018, 11:25 neon1024 Is there a better way to tell the marshaller to not marshall request data where it’s value is empty? With an optional select element, using ‘empty’ I can submit request data with a foreignKey of `''` and the marshaller will fail validation when it tries to create a new entity. This feels like a bug to me, and I’m having to sidestep it by unsetting my request data. I’m sure I’m missing a feature in the core here, anyone know what
# Feb 8th 2018, 10:47 h.mavisakalian Neo4j for example
# Feb 8th 2018, 10:46 h.mavisakalian Does anyone have any experience with using cakephp3 with graph databases ?
# Feb 8th 2018, 10:46 h.mavisakalian Hi all.
# Feb 8th 2018, 10:32 neon1024 I was missing an ‘associated’ key in my nested array
# Feb 8th 2018, 10:14 narendravaghela I am facing an issue with https://github.com/FriendsOfCake/cakephp-upload when there is belongsToMany relation beetween models is there any good example on that use case?
# Feb 8th 2018, 10:06 dereuromark sugitime: can you be more specific? :slightly_smiling_face:
# Feb 8th 2018, 09:55 ono-t Good Morning! :sunrise:
# Feb 8th 2018, 09:27 neon1024 I’m trying to figure out why my request data isn’t being marshalled. I’ve setup the ‘associated’ array inside the `patchEntity` call, but for some reason, after the patchEntity, the resulting entity, just has an array and not an entity. Anyone have any ideas how I might debug to find out why the marshal isn’t interested in my data
# Feb 8th 2018, 08:43 neon1024 Morning all
# Feb 8th 2018, 06:47 narendravaghela 3.x has many changes in structure.
# Feb 8th 2018, 06:47 narendravaghela :slightly_smiling_face:
# Feb 8th 2018, 06:35 sugitime wow cakephp 3.5 is terrible compared to 2.0
# Feb 8th 2018, 06:22 mkbkit someone know node js ?
# Feb 8th 2018, 06:22 mkbkit Someone can help me node js
# Feb 8th 2018, 06:18 sugitime From some quick googling, it looks like there are some session variables set that are required for success, and I should be using $this->Flash->render instead? But all the tutorials on Cakephp show the use of success, so I’m confused.
# Feb 8th 2018, 06:18 sugitime ill tackle that little thing later on. having another issue with $this->Flash->success; I am getting a 500 error every time I try and call it
# Feb 8th 2018, 06:02 narendravaghela You can add that in passing class name in options argument of Form->create()
# Feb 8th 2018, 06:01 narendravaghela By the way, you want to apply CSS class to the form, right?
# Feb 8th 2018, 06:01 narendravaghela ``` $user = $this->Users->newEntity(); ```
# Feb 8th 2018, 06:01 narendravaghela In controller,
# Feb 8th 2018, 05:38 sugitime I tried: $this->Form->create($login[‘class’=>’form-signin’]); but I get errors. same with if I replace $login with $user. but I mean, it sort of makes sense. I never set hte $user variable. can I see the controller code too please?
# Feb 8th 2018, 05:37 narendravaghela It is connected with User entity
# Feb 8th 2018, 05:36 sugitime thats for a modeless form though, isnt it?
# Feb 8th 2018, 05:35 narendravaghela @sugitime Check this ``` <?php echo $this->Form->create($user [ 'url' => ['_name' => 'add-use'], 'type' => 'post', 'class' => 'horizontal-form', 'id' => 'create-user-form', 'enctype' => 'multipart/form-data' ]); ?> ```
# Feb 8th 2018, 05:32 sugitime been looking around the Form docs, but cant seem to figure out how to set the class attribute of a form tag
# Feb 8th 2018, 05:31 sugitime anyone on that might be able to help with a quick question?
# Feb 8th 2018, 05:13 sugitime I feel like that is the answer...
# Feb 8th 2018, 05:13 sugitime or should I be placing this the Auth component in the initialize() of each controller?
# Feb 8th 2018, 05:11 sugitime controllers.
# Feb 8th 2018, 05:11 sugitime so im following a tutorial about setting up Auth, and im confused a bit. the AppController.php contains the loadComponenet, then uses $this->AUth->allow() to allow anonymous access to methods in other classes. Im confused because I dont know how to it determines which controllers it gives access to unambiguously. Lets say I have the view method in the WidgetController.php and the FooController.php. $this->Auth->allow() does not allow me
# Feb 8th 2018, 04:24 newbie_cakie but i don't think this is a robust solution
# Feb 8th 2018, 04:24 newbie_cakie these all go away when i do "setenforce 0"
# Feb 8th 2018, 04:23 newbie_cakie i have set the permission and the group so that this supposedly shouldn't be an issue
# Feb 8th 2018, 04:23 newbie_cakie these are couple of them
# Feb 8th 2018, 04:23 newbie_cakie Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/MyApp/vendor/cakephp/cakephp/src/Error/Debugger.php:850) [CORE/src/Http/ResponseEmitter.php, line 181]
# Feb 8th 2018, 04:23 newbie_cakie Warning (512): _cake_model_ cache was unable to write 'debug_kit_requests' to DebugKit\Cache\Engine\DebugEngine cache [CORE/src/Cache/Cache.php, line 287]
# Feb 8th 2018, 04:23 newbie_cakie Warning (512): SplFileInfo::openFile(/var/www/html/MyApp/tmp/cache/models/myapp_cake_model_debug_kit_requests) [<a href='https://secure.php.net/splfileinfo.openfile'>splfileinfo.openfile</a>]: failed to open stream: Permission denied [CORE/src/Cache/Engine/FileEngine.php, line 397]
# Feb 8th 2018, 04:22 newbie_cakie Warning (512): SplFileInfo::openFile(/var/www/html/MyApp/tmp/cache/persistent/myapp_cake_core_translations_debug_kit_en__u_s): failed to open stream: Permission denied [CORE/src/Cache/Engine/FileEngine.php, line 397]
# Feb 8th 2018, 04:22 newbie_cakie so i'm getting bunch of weird warnings...