# |
Dec 29th 2018, 04:44 |
challgren |
Whats your findMethod? |
# |
Dec 29th 2018, 04:40 |
NickBusey |
The editing error claims the URL id doesn't match the data id, when in fact it does. |
# |
Dec 29th 2018, 04:40 |
NickBusey |
I'm trying to get FriendsOfCake/crud-json-api working, and I can create and read records, but deleting and updating doesn't work. here's the error when deleting: https://pastebin.com/3YY5MukG and here's the error when editing: https://pastebin.com/S53rwBwQ |
# |
Dec 29th 2018, 03:46 |
slackebot |
<challgren> |
# |
Dec 29th 2018, 03:46 |
challgren |
Ok so I'm having a weird issue during testing of my custom UsersMailer built from CakeDC\Users. I've built a Plugin.php for CakeDC\Users to see if maybe that was the issue and I am loading the plugin in my `tests\bootstrap.php` using `Plugin::getCollection()->add(new \CakeDC\Users\Plugin(['routes' => true]));` |
# |
Dec 29th 2018, 01:30 |
itmpls |
that shouldn't matter i guess, buut |
# |
Dec 29th 2018, 01:30 |
itmpls |
could it be because my request data passes the _ids somehow? |
# |
Dec 29th 2018, 01:22 |
itmpls |
oh well |
# |
Dec 29th 2018, 01:22 |
itmpls |
hm, tried that but no go. weeeird |
# |
Dec 29th 2018, 01:15 |
dereuromark |
I had to do sth similar: https://github.com/dereuromark/cakephp-tags/blob/master/src/Model/Behavior/TagBehavior.php#L105 |
# |
Dec 29th 2018, 01:14 |
dereuromark |
possibly |
# |
Dec 29th 2018, 01:13 |
itmpls |
do i have to do something with $_accessible perhaps? |
# |
Dec 29th 2018, 01:11 |
itmpls |
it is clearly dirty |
# |
Dec 29th 2018, 01:11 |
itmpls |
the patched entity has 3 records for 'trades', the original has 2 |
# |
Dec 29th 2018, 01:11 |
itmpls |
save strategy of replace make a difference? |
# |
Dec 29th 2018, 01:11 |
itmpls |
it's done through a join table etc |
# |
Dec 29th 2018, 01:11 |
dereuromark |
hm |
# |
Dec 29th 2018, 01:11 |
itmpls |
yes |
# |
Dec 29th 2018, 01:11 |
dereuromark |
did you patch it? |
# |
Dec 29th 2018, 01:10 |
itmpls |
is it just not optimal to do that check? |
# |
Dec 29th 2018, 01:10 |
itmpls |
even though it clearly is? |
# |
Dec 29th 2018, 01:10 |
itmpls |
@dereuromark is there something that prevents a belongsToMany from being marked as dirty? |
# |
Dec 29th 2018, 01:09 |
dereuromark |
@asdfgh in the end it doesnt matter much, one just gets auto-detected more easily, others need a bit of config |
# |
Dec 29th 2018, 01:08 |
dereuromark |
jep, possible. see how the tags plugin does it |
# |
Dec 29th 2018, 00:53 |
itmpls |
do I need to manually mark it as dirty, or? |
# |
Dec 29th 2018, 00:53 |
itmpls |
how come my belongsToMany isn't being marked as dirty? |
# |
Dec 29th 2018, 00:52 |
asdfgh |
which follow the cake conventions? |
# |
Dec 29th 2018, 00:52 |
asdfgh |
agents_jobs_assessments or agent_job_assessments or agent_jobs_assessments |
# |
Dec 29th 2018, 00:51 |
asdfgh |
what name should i use? |
# |
Dec 29th 2018, 00:51 |
asdfgh |
last question for this night...at the moment i have these tables: agents, jobs, agents_jobs now i have to create something like agents_jobs_assessments so basically i table that is pointing to the PK of the agents_jobs table |
# |
Dec 29th 2018, 00:30 |
asdfgh |
too late here ahah |
# |
Dec 29th 2018, 00:30 |
asdfgh |
nevermind :) |
# |
Dec 29th 2018, 00:30 |
asdfgh |
OPS OK |
# |
Dec 29th 2018, 00:24 |
dereuromark |
> the definition of cake ;) |
# |
Dec 29th 2018, 00:24 |
dereuromark |
if you google it you find "rapid app development" |
# |
Dec 29th 2018, 00:19 |
asdfgh |
dereuromark, pardon for the stupid question but, what do you mean with cake ""RAD"" ? |
# |
Dec 29th 2018, 00:15 |
dereuromark |
why would you need an extra plugin |
# |
Dec 29th 2018, 00:15 |
dereuromark |
isnt cake RAD enough to make any survey easily?^^ |
# |
Dec 29th 2018, 00:09 |
asdfgh |
is there a good survey plugin for cakephp 3.7 ? |
# |
Dec 29th 2018, 00:09 |
asdfgh |
hello |
# |
Dec 28th 2018, 22:55 |
dereuromark |
depending on if you also need prefixed ones etc. |