# |
May 25th 2017, 21:05 |
meder_ |
actually, I played around with explicitly referencing 'Attachments' in 'associated', when i explicitly reference it, attachemnts is blank |
# |
May 25th 2017, 21:04 |
meder_ |
ok |
# |
May 25th 2017, 21:04 |
meder_ |
https://gist.github.com/anonymous/0c0856148d937d4ffcb2be9581cf8163 patched |
# |
May 25th 2017, 21:00 |
jeremyharris |
I’ll read through the cruft, don’t worry |
# |
May 25th 2017, 20:59 |
jeremyharris |
this line is how I know: https://gist.github.com/anonymous/670ef8a66a390bef35011306d7a22a5e#file-entities-php-L35 |
# |
May 25th 2017, 20:59 |
jeremyharris |
looks like you modified the dump again :( please dump the full results of what we ask for, otherwise we end up taking 2 hours like this to solve an issue |
# |
May 25th 2017, 20:58 |
jeremyharris |
ok now the patched |
# |
May 25th 2017, 20:58 |
meder_ |
https://gist.github.com/anonymous/670ef8a66a390bef35011306d7a22a5e original entity with dirty/new |
# |
May 25th 2017, 20:55 |
meder_ |
alright |
# |
May 25th 2017, 20:55 |
meder_ |
k |
# |
May 25th 2017, 20:55 |
jeremyharris |
please gist the full results |
# |
May 25th 2017, 20:55 |
meder_ |
https://gist.github.com/anonymous/a94a69696962122805aa9224ba53cdc2 |
# |
May 25th 2017, 20:55 |
jeremyharris |
(e.g., dirty props, isNew, etc) |
# |
May 25th 2017, 20:55 |
jeremyharris |
also, the gisted patchedEntity seems to be missing information |
# |
May 25th 2017, 20:54 |
jeremyharris |
may as well gist requestData too |
# |
May 25th 2017, 20:54 |
jeremyharris |
it will not be changed since you use a different variable for patchedEntity |
# |
May 25th 2017, 20:53 |
jeremyharris |
sure |
# |
May 25th 2017, 20:53 |
meder_ |
debug of the $entity after patch? |
# |
May 25th 2017, 20:52 |
jeremyharris |
you still haven’t given me the original entity |
# |
May 25th 2017, 20:51 |
meder_ |
ah ok |
# |
May 25th 2017, 20:51 |
jeremyharris |
the new entity test was just a test to see that it can create an entity from that table |
# |
May 25th 2017, 20:49 |
meder_ |
doesnt seem to do it |
# |
May 25th 2017, 20:49 |
meder_ |
let me dump patchedEntity sec |
# |
May 25th 2017, 20:49 |
meder_ |
ok, i removed the id and in the foreach im doing $newAttachment = $this->Attachments->newEntity($attachment); where $attachment is ['file_id' => 922, [new] => true] |
# |
May 25th 2017, 20:38 |
jeremyharris |
meder_ in the foreach one yeah |
# |
May 25th 2017, 20:36 |
meder_ |
slackebot: in that for loop? |
# |
May 25th 2017, 20:32 |
inoas |
See you! around |
# |
May 25th 2017, 20:32 |
inoas |
today is holiday in germany but well... I got deadlines ;) |
# |
May 25th 2017, 20:32 |
inoas |
hope you have a long weekend |
# |
May 25th 2017, 20:32 |
WyriHaximus |
Thanks, ttyl |
# |
May 25th 2017, 20:32 |
inoas |
enjoy |
# |
May 25th 2017, 20:32 |
WyriHaximus |
No problem :D! Anyway I got to run, long day ahead of me tomorrow. Will ping you during/over the weekend to see how your progress is going :) |
# |
May 25th 2017, 20:31 |
inoas |
I had the basic twig things going but that saved me a lot of time |
# |
May 25th 2017, 20:31 |
inoas |
thank you so much to get me started/fueld and not having to reinvent everything |
# |
May 25th 2017, 20:31 |
WyriHaximus |
inoas: yeah I know, but I don't have a lot of time for it now. Might be a month or two before I get to it. So glad to see you're figuring it out, and learning a lot in the process :) |
# |
May 25th 2017, 20:30 |
meder_ |
ok sec |
# |
May 25th 2017, 20:30 |
inoas |
then Twig can cache it as PHP |
# |
May 25th 2017, 20:30 |
inoas |
so that you can write the string as a twig file |
# |
May 25th 2017, 20:30 |
inoas |
it should probably also be able to take an identifier |
# |
May 25th 2017, 20:30 |
inoas |
WyriHaximus: well that's what I am doing at the moment... |
# |
May 25th 2017, 20:29 |
jeremyharris |
meder_ try running `$this->Attachments->newEntity($attachment)` on one of your attachments to see what it produces |