# |
Apr 10th 2019, 11:37 |
joopm |
$person = $this->People->patchEntity($person, $this->request->getData(),['associated'=>['Users'=>['validate'=>true,'associated'=>'Roles']]]); |
# |
Apr 10th 2019, 11:36 |
joopm |
do you think that this must works: |
# |
Apr 10th 2019, 11:36 |
joopm |
thank you neon1024 |
# |
Apr 10th 2019, 11:35 |
neon1024 |
You need to add a new key on each level |
# |
Apr 10th 2019, 11:35 |
neon1024 |
You’ve missed the extra ‘associated’ key |
# |
Apr 10th 2019, 11:24 |
joopm |
also i am able to add new entry in UsersRoles |
# |
Apr 10th 2019, 11:24 |
joopm |
i double check the Roles and Users models |
# |
Apr 10th 2019, 11:24 |
joopm |
the Roles does not |
# |
Apr 10th 2019, 11:24 |
joopm |
but only the People data and User data saved |
# |
Apr 10th 2019, 11:23 |
joopm |
the patchEntity : $person = $this->People->patchEntity($person, $this->request->getData(),['associated'=>['Users'=>['validate'=>true],'Users.Roles']]); |
# |
Apr 10th 2019, 11:23 |
joopm |
i have some issue with saving nested association |
# |
Apr 10th 2019, 11:23 |
joopm |
hello there |
# |
Apr 10th 2019, 09:27 |
neon1024 |
Morning all :wave: |
# |
Apr 10th 2019, 08:16 |
spriz |
:) :,) |
# |
Apr 10th 2019, 06:37 |
tigrangab |
Ive been on IRC for the past two weeks wondering what the hell slackebot is. Haven't used cake in a few years. I didn't make the connection until today that it moved over to slack |
# |
Apr 10th 2019, 05:51 |
challgren |
Probably more if you count the IRC lurkers |
# |
Apr 10th 2019, 05:30 |
narendravaghela |
So, we have 3K members now :tada: |
# |
Apr 10th 2019, 01:27 |
challgren |
O_o https://github.com/cakephp/cakephp/releases/tag/3.7.6 |
# |
Apr 10th 2019, 01:09 |
hollistergraham123 |
@sdevore You are the bomb |
# |
Apr 10th 2019, 01:07 |
sdevore |
@hollistergraham123 can you do `$this->response = $this->response->withStatus(500);` |
# |
Apr 9th 2019, 23:46 |
hollistergraham123 |
So when returning the error like this I would like to set the http response code to 500 |
# |
Apr 9th 2019, 23:46 |
hollistergraham123 |
When using the JsonView is there a way to set the status of the response? |
# |
Apr 9th 2019, 21:07 |
admad |
the 1st code block in this section shows you how https://book.cakephp.org/3.0/en/controllers/components/authentication.html#configuring-authentication-handlers |
# |
Apr 9th 2019, 20:55 |
maymeow |
Can i use non default user table for auth component? if yes How? |
# |
Apr 9th 2019, 19:56 |
sdevore |
I have used this as a starting point in the past for a cakephp docker setup https://github.com/cwbit/cakephp-docker |
# |
Apr 9th 2019, 19:46 |
johannsan |
i figured u guys mayb could help me. i would like to dev my cakephp apps using docker containers. do u have an easy-to-use dockerfile? mayb a good tutorial?! my knowledge on docker is limited, but i don't mind learning it. |
# |
Apr 9th 2019, 19:43 |
johannsan |
hello! |
# |
Apr 9th 2019, 19:43 |
abdualelah.mdy |
solve it. thanks anyway |
# |
Apr 9th 2019, 19:39 |
abdualelah.mdy |
help please |
# |
Apr 9th 2019, 19:38 |
slackebot |
<abdualelah.mdy> |
# |
Apr 9th 2019, 19:36 |
slackebot |
<abdualelah.mdy> |
# |
Apr 9th 2019, 19:35 |
abdualelah.mdy |
here is my code |
# |
Apr 9th 2019, 19:35 |
abdualelah.mdy |
it gives 500 internal error |
# |
Apr 9th 2019, 19:35 |
abdualelah.mdy |
i have problem with ajax |
# |
Apr 9th 2019, 15:57 |
jeremyharris |
you could use toArray and check the key via isset(), but that’s about it |
# |
Apr 9th 2019, 15:51 |
sicoro |
Is it possible to get collection's element by key simpler? https://pastebin.com/gP44f2A0 |
# |
Apr 9th 2019, 14:35 |
slackebot |
<tjkalinowski> |
# |
Apr 9th 2019, 14:03 |
om.axisweb |
how to get this data both ? |
# |
Apr 9th 2019, 14:02 |
om.axisweb |
i have a table name student student table in a field name by class_id and an another table name fee_data in fee_data table in have class_id field |
# |
Apr 9th 2019, 13:51 |
ricksaccous |
i think probably php ftp will work fine for that |
# |
Apr 9th 2019, 13:49 |
ricksaccous |
has anyone dealt with larger file transfers? |