# |
Dec 29th 2018, 04:58 |
challgren |
Good luck with your brewing and app! |
# |
Dec 29th 2018, 04:57 |
challgren |
Ahh that would be it! |
# |
Dec 29th 2018, 04:56 |
NickBusey |
thanks |
# |
Dec 29th 2018, 04:56 |
NickBusey |
Hmm actually, it looks like things may be working and the 404 is because the record was actually deleted and I didn't notice it |
# |
Dec 29th 2018, 04:54 |
challgren |
Im not very familiar with that plugin but it appears there's no query being sent to the database. But again Im not familiar with how that plugin works |
# |
Dec 29th 2018, 04:49 |
NickBusey |
https://pastebin.com/Yd7DdW5Y |
# |
Dec 29th 2018, 04:48 |
challgren |
Well your delete pastebin isn't complete so I cant really see the whole issue |
# |
Dec 29th 2018, 04:46 |
NickBusey |
Not sure what you mean, using the crud plugin so it is supposed to handle generating that |
# |
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 |