Log message #4221016

# At Username Text
# Jan 6th 2020, 15:02 johnpaul5421 Working with Cakephp 2X i'm trying to pass data from a form $form->create('tutor', array(action'=>
# Jan 6th 2020, 14:56 etibor okey moment, thank you
# Jan 6th 2020, 14:56 ndm @etibor Again, please show the debug output
# Jan 6th 2020, 14:55 alexdd55976 i really don't wanna put that into the template
# Jan 6th 2020, 14:54 alexdd55976 hey guys, ideas why ` ```$this->viewBuilder()->setLayout('ajax.php');``` not working?
# Jan 6th 2020, 14:39 ondrej.nedvidek ok I think I found it ```$this->Crud->on('beforeFind', function(\Cake\Event\Event $event) use ($slug) { $event->getSubject()->query->find('view', compact('slug')); });```
# Jan 6th 2020, 14:38 etibor @ndm sorry i was not carifully when copied the ode here. I pasted here the important part: https://pastebin.com/qZDJ9zjD
# Jan 6th 2020, 14:35 ondrej.nedvidek Hi there. Does anyone know how to pass $options to `find()` method of table when using CRUD and their `findMethod()` So ideally it should work this way `$this->Crud->action()->findMethod('publishedPost', ['slug' => $slug]);`
# Jan 6th 2020, 14:16 ndm @etibor `$document` and `$document_ent` are one and the same object, I'd be very surprised if they'd contain different data. Try `debug($document)` and `debug($this->request->getData())` and show the results (but with code fences please or as code snippets (https://slack.com/intl/en-de/help/articles/202288908-Format-your-messages), or as a gist, as "unformatted" code is hard to read).
# Jan 6th 2020, 14:02 etibor i also tried "manually" update the joinData field like this: if ($this->request->is(['patch', 'post', 'put'])) { foreach($document_ent->document_sub_types as $tst){ $tst->_joinData->visible = $this->request->getData('visible'); } and saving the patchEntity but it does not save the joinData field(visible)
# Jan 6th 2020, 13:58 etibor thank you for your help, I definied the patchentity like this: $document = $this->Documents->patchEntity($document_ent, $this->request->getData(),['associated'=>['DocumentSubTypes._joinData']]); $document does not show the joinData anymore, only the $document_ent which is defined like: $document_ent = $this->Documents->get($id, [ 'contain' => ['DocumentSubTypes'] ]);
# Jan 6th 2020, 13:45 spriz @etibor this should work https://book.cakephp.org/4/en/orm/saving-data.html#saving-additional-data-to-the-join-table :)
# Jan 6th 2020, 13:45 ndm You should probably show your code
# Jan 6th 2020, 13:44 etibor i use 3.5
# Jan 6th 2020, 13:41 etibor i followed this: https://github.com/cakephp/docs/commit/a88c9dd88bd9aa23be92e06d9341f3605480c250 its works with add function but does not work with edit
# Jan 6th 2020, 13:40 spriz Anyone using generated columns in mysql with cake 3.x? Is there any hiccups I should take care of? :)
# Jan 6th 2020, 13:37 etibor also its only appear in the 'original'
# Jan 6th 2020, 13:36 etibor is anyone can tell me that how can i update the _joinData fields, i can see those fields in the Entity but not in the PatchEntity
# Jan 6th 2020, 11:58 challgren https://configserver.com/cp/csf.html works great for firewall/security notifications
# Jan 6th 2020, 11:49 etibor i am just asking you because i am walking in similar shoes, i need to make regular backups, send warning if out of disk, send warning if hack attack happened etc
# Jan 6th 2020, 11:44 conehead nope
# Jan 6th 2020, 11:43 etibor @conehead do you cPanel or some similar solution?
# Jan 6th 2020, 11:29 conehead And yes, of course I can write my own script :P
# Jan 6th 2020, 11:29 conehead I was more hoping to automatically create daily/weekly/monthly backups and drop unused ones
# Jan 6th 2020, 11:25 dereuromark thats what my script uses :) it is fast and memory reduced
# Jan 6th 2020, 11:19 neon1024 Although there is probably a better service for it to be honest
# Jan 6th 2020, 11:17 neon1024 `mysqldump`
# Jan 6th 2020, 11:05 dereuromark together with some crontab based sh script
# Jan 6th 2020, 11:05 challgren I just have a small batch script to dump the db and then sftp upload it
# Jan 6th 2020, 11:05 dereuromark Setup plugin maybe
# Jan 6th 2020, 11:04 conehead Does anyone know a good script that backups mysql databases daily/weekly/monthly?
# Jan 6th 2020, 11:02 etibor i use cakephp 3.5.12 , i dont understand why i cannot acces for _joinData in the PatcEntity
# Jan 6th 2020, 10:53 etibor Happy New year neon1024 :)
# Jan 6th 2020, 10:51 neon1024 Morning all :wave: Happy 2020
# Jan 6th 2020, 10:47 etibor i have some issue to saving in the _joinData,because in the PatchEntity the _joinData property does not appear,only in the 'original'. I definied the patchentity like this: $document = $this->Documents->patchEntity($document_ent, $this->request->getData(),['associated'=>['DocumentSubTypes._joinData']]);
# Jan 6th 2020, 10:38 etibor hello all
# Jan 6th 2020, 10:36 conehead Something different :P
# Jan 6th 2020, 10:36 admad @conehead lol @ stevejobs
# Jan 6th 2020, 10:31 muas199 taking a look
# Jan 6th 2020, 10:29 challgren @muas199 try https://github.com/bcrowe/cakephp-encrypted-type
# Jan 6th 2020, 10:28 muas199 Having issues using custom databases types. Can save encrypted data but can't retrieve it