# |
Jul 17th 2017, 08:13 |
savant |
are you behind a firewall? |
# |
Jul 17th 2017, 08:13 |
alexdd55 |
> : file_get_contents(https://packagist.org/packages/cakephp/cakephp.json): failed to open stream: Operation timed out |
# |
Jul 17th 2017, 08:10 |
alexdd55 |
i try to find out.. it says internal server error |
# |
Jul 17th 2017, 08:10 |
savant |
what isnt |
# |
Jul 17th 2017, 08:09 |
alexdd55 |
hm. not working |
# |
Jul 17th 2017, 08:06 |
alexdd55 |
thanks |
# |
Jul 17th 2017, 08:04 |
savant |
hmmm |
# |
Jul 17th 2017, 08:04 |
alexdd55 |
ah.. cakedc/ |
# |
Jul 17th 2017, 08:02 |
savant |
cakedc/oven |
# |
Jul 17th 2017, 08:02 |
savant |
yes |
# |
Jul 17th 2017, 08:02 |
alexdd55 |
can not remember the name |
# |
Jul 17th 2017, 08:02 |
alexdd55 |
wasn’t there a install wizard for cake? |
# |
Jul 17th 2017, 08:01 |
alexdd55 |
morning |
# |
Jul 17th 2017, 07:58 |
Guest97576 |
morning |
# |
Jul 17th 2017, 07:55 |
neon1024 |
Morning everyone |
# |
Jul 17th 2017, 07:51 |
savant |
a silly answer |
# |
Jul 17th 2017, 07:47 |
xuding |
a silly question, |
# |
Jul 17th 2017, 05:34 |
iqbalchannar796 |
https://gist.github.com/anonymous/ea72b0ad34ea5e4ea81fc79541c7560d |
# |
Jul 17th 2017, 05:27 |
iqbalchannar796 |
script src="https://gist.github.com/anonymous/ea72b0ad34ea5e4ea81fc79541c7560d.js"></script |
# |
Jul 17th 2017, 05:25 |
admad |
Aha, you already told him. Well then good luck wasting time by keeping on using persons |
# |
Jul 17th 2017, 05:25 |
jeremyharris |
Getting info piece by piece is taking too long for me :( I need to sleep |
# |
Jul 17th 2017, 05:24 |
jeremyharris |
https://cakesf.slack.com/archives/C053DPNGT/p1500267592756371 |
# |
Jul 17th 2017, 05:23 |
admad |
The plural of person is people not persons |
# |
Jul 17th 2017, 05:23 |
jeremyharris |
Ok great. Now the users table please. And debug($person) right after patchEntity |
# |
Jul 17th 2017, 05:18 |
iqbalchannar796 |
sure sir |
# |
Jul 17th 2017, 05:15 |
jeremyharris |
Please paste your PersonsTable into http://gist.github.com |
# |
Jul 17th 2017, 05:13 |
slackebot |
} debug($user->errors()); $this->Flash->error(__('The user could not be saved. Please, try again.')); } |
# |
Jul 17th 2017, 05:13 |
iqbalchannar796 |
$user = $this->Users->newEntity(); if ($this->request->is('post')) { // pr($this->request->data); // die; $user = $this->Users->patchEntity($user, $this->request->data, ['associated' => ['Persons']]); if ($this->Users->save($user, ['associated' => ['Persons']])) { $this->Flash->success(__('The user has been saved.')); return $this->redirect(['action' |
# |
Jul 17th 2017, 05:12 |
iqbalchannar796 |
ERROR "Cannot marshal data for "Users" association. It is not associated with "Persons". " |
# |
Jul 17th 2017, 05:10 |
jeremyharris |
And the other things too please |
# |
Jul 17th 2017, 05:10 |
jeremyharris |
debug($person) |
# |
Jul 17th 2017, 05:09 |
jeremyharris |
gist.github.com |
# |
Jul 17th 2017, 05:09 |
iqbalchannar796 |
how Jeremyharris ?? |
# |
Jul 17th 2017, 05:03 |
jeremyharris |
Can you gist the Persons table and the request data and the $person entity after patching |
# |
Jul 17th 2017, 05:02 |
iqbalchannar796 |
i want to use add function of UsersController for storing association data |
# |
Jul 17th 2017, 05:01 |
iqbalchannar796 |
yes |
# |
Jul 17th 2017, 04:59 |
jeremyharris |
Also, since you're not following conventions there might be more setup (the plural of person is people) |
# |
Jul 17th 2017, 04:59 |
jeremyharris |
https://book.cakephp.org/3.0/en/orm/associations.html |
# |
Jul 17th 2017, 04:57 |
jeremyharris |
Did you add the association on the table's initialize method? |
# |
Jul 17th 2017, 04:39 |
iqbalchannar796 |
??? |
# |
Jul 17th 2017, 04:39 |
iqbalchannar796 |
can anyone help me |