Log message #4179363

# At Username Text
# Mar 12th 2019, 13:50 ricksaccous please read patchEntity documentation
# Mar 12th 2019, 13:50 om.axisweb i am new on cakephp from last 4 days
# Mar 12th 2019, 13:49 om.axisweb how to ?
# Mar 12th 2019, 13:49 ricksaccous also you should specify associated => in patchEntity
# Mar 12th 2019, 13:48 ricksaccous you'd realize it would need to be enclosures._ids
# Mar 12th 2019, 13:48 ricksaccous also if you read what i posted
# Mar 12th 2019, 13:48 ricksaccous are you converting to entity?
# Mar 12th 2019, 13:46 om.axisweb :weary:
# Mar 12th 2019, 13:40 om.axisweb save to in one field
# Mar 12th 2019, 13:40 om.axisweb i need [enclosures] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 )
# Mar 12th 2019, 13:39 slackebot [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 ) [street_address] => gfergh egg hpghg; [landmark] => 6546576 [city] => sardarshahar [pincode] => 333245 [district] => churu [state] => rajsthan [country] => india [add_by] => 1 )
# Mar 12th 2019, 13:39 slackebot [mother_name] => test 2 [mother_occup] => doctor [mother_qual] => MBBS [mother_mob] => 45465576787988 [income] => 2 lak [dob] => 2001-27-02 [gender] => m [blood] => A [medium] => english [identity_card] => 12343556677889 [identity_number] => 4556767989809 [community] => obc [differently_abled] => 1 [email] => dhanpat.saran@gmail.com [mobile] => 766565767787 [enclosures] => Array (
# Mar 12th 2019, 13:39 om.axisweb Array ( [school_id] => 1 [session_id] => 1 [class_id] => 1 [section_id] => 6 [stream_id] => 1 [subject_id] => 2 [export_type] => 1 [vehicle_no] => 4335656767878 [enrollment_no] => 3243568787898 [name] => Neharu Pubilc School,Sardarshahar [father_name] => test 1 [father_occup] => teacher [father_qual] => MA,BAED [father_mob] => 22343567688 [father_address] => test address father
# Mar 12th 2019, 13:39 om.axisweb when i post form data exit by print than get like this =>
# Mar 12th 2019, 13:38 om.axisweb my save method here
# Mar 12th 2019, 13:38 slackebot $this->Flash->success(__('The student has been saved.')); return $this->redirect(['action' => 'index']); } $this->Flash->error(__('The student could not be saved. Please, try again.')); } $this->set(compact('awaStudent', 'schools', 'sessions', 'classes', 'sections', 'streams', 'subjects')); }
# Mar 12th 2019, 13:38 om.axisweb public function add() { $awaStudent = $this->Students->newEntity(); if ($this->request->is('post')) { $this->request->data['add_by'] = $this->request->session()->read('authpanel.id'); //print_r($this->request->getData());exit; $awaStudent = $this->Students->patchEntity($awaStudent, $this->request->getData()); if ($this->Students->save($awaStudent)) {
# Mar 12th 2019, 13:35 ricksaccous @om.axisweb https://book.cakephp.org/3.0/en/orm/saving-data.html#converting-belongstomany-data
# Mar 12th 2019, 13:34 om.axisweb please tell me how to store value in table ?
# Mar 12th 2019, 13:33 om.axisweb http://www.awesomescreenshot.com/image/3912750/de1621f139bbffc3c62c0fb895b81871
# Mar 12th 2019, 13:32 ricksaccous I'm assuming i have to toy around with addnestedmany... but it seems like it doesn't work in this case
# Mar 12th 2019, 13:31 ricksaccous yes
# Mar 12th 2019, 13:30 om.axisweb http://www.awesomescreenshot.com/image/3912720/7cb2c4f25f33410152fefa3606f14064
# Mar 12th 2019, 13:27 om.axisweb only one field
# Mar 12th 2019, 13:27 ricksaccous @om.axisweb what? I know how to save them to table, i just want to make them select at least one
# Mar 12th 2019, 13:26 om.axisweb cakephp in how to save multiselect box value in table ?
# Mar 12th 2019, 13:25 ricksaccous how do you put a validation rule so that in a belongstomany multiselect they are required to select at least one
# Mar 12th 2019, 13:25 ricksaccous my mind is really foggy this morning
# Mar 12th 2019, 12:52 egalles so, I think my project is secure
# Mar 12th 2019, 12:52 egalles I like to work in s.o.l.i.d pattern and I try to work in clean code too
# Mar 12th 2019, 12:50 egalles thx
# Mar 12th 2019, 12:48 admad @egalles https://bakery.cakephp.org/2017/11/22/mozilla_sos_audit_published.html that's how secure Cake is, the rest depends on the developer :slightly_smiling_face:
# Mar 12th 2019, 12:33 neon1024 Or commission someone to do penetration testing perhaps :man-shrugging:
# Mar 12th 2019, 12:32 egalles And my client wants to know how secure is the applicattion that I've done. So I said what neon1024 says
# Mar 12th 2019, 12:32 neon1024 CakePHP is as secure as the developer writing the code
# Mar 12th 2019, 12:31 egalles I found that > https://translate.google.es/translate?sl=autoandtl=enandu=http%3A%2F%2Fwww.rephp.com%2Fque-hace-que-cakephp-sea-seguro-y-como-podemos-boost-su-seguridad.html
# Mar 12th 2019, 12:30 egalles ye, i know that is an abstract question
# Mar 12th 2019, 12:25 josbeir => https://book.cakephp.org/3.0/en/controllers/components/security.html
# Mar 12th 2019, 12:24 josbeir your app is as secure as you plan to make it. Of course there are some measures in the ORM but the rest depends on the developer implementing the right measures, handy components for this are built in cake itself (like security component, csrf protection, form tampering, ...
# Mar 12th 2019, 12:22 josbeir thats a very abstract question @egalles
# Mar 12th 2019, 12:21 egalles Hi there, is there a way to show to a client how secure it is cakephp ? Any manual ? I can't found it in cakephp.org