Log message #4050539

# At Username Text
# Jul 11th 2017, 11:39 miks ohh thanks
# Jul 11th 2017, 11:39 hmic miks, like you said: you cannot.
# Jul 11th 2017, 11:38 miks is there a way to get the original virtual property?
# Jul 11th 2017, 11:37 mallick thanks buddy :+1:
# Jul 11th 2017, 11:37 hmic you could seperate it into a plugin, if that makes sense to you
# Jul 11th 2017, 11:36 hmic mallick: use a prefix maybe? then use crud+crudview and your backend is done.
# Jul 11th 2017, 11:36 mallick one quick question,, my project has two part,, one frontend and other is backend,, so what i do for backend??? make a plugin or what??
# Jul 11th 2017, 11:36 hmic so the answer is?
# Jul 11th 2017, 11:35 miks but when i use $entity->getOriginal('virtual_property') it just gives me $entity['virtual_property']
# Jul 11th 2017, 11:33 hmic miks, i guess you know the answer already
# Jul 11th 2017, 11:32 miks hi, i know we can access original value of entity with $entity->getOrignal('property') but how can you get an original virtual property like something similar to $entity->getOrignal('virtual_property')
# Jul 11th 2017, 11:28 hmic add it to dev dependencies, maybe, to get the tests too?
# Jul 11th 2017, 11:28 bernat Thanks, now I know it's not something broken in my app.
# Jul 11th 2017, 11:27 neon1024 Think so. Not sure how that’s been achieved though ;)
# Jul 11th 2017, 11:27 neon1024 If you checkout cakephp/cakephp into it’s own repo they should be there I think
# Jul 11th 2017, 11:27 bernat But they're in github. Are they remove only from releases?
# Jul 11th 2017, 11:27 neon1024 I think it’s because they’re not in cakephp/app
# Jul 11th 2017, 11:27 neon1024 Yeah the framework doesn’t come with tests any more
# Jul 11th 2017, 11:26 bernat I can't find cakephp/cakephp/tests/TestCase in my vendors directory.
# Jul 11th 2017, 11:12 admad "Iiiit's time!"
# Jul 11th 2017, 10:37 neon1024 Same for me! I generally end up having to draw it out on paper
# Jul 11th 2017, 10:36 jarard01 i hate working with time literraly warps the mind
# Jul 11th 2017, 10:31 wouter0100 Muh, found the exception. A relation existed twice in the DB.
# Jul 11th 2017, 10:21 hmic you get a new object back whenever you (try to) change a frozen object. the original one cannot ever change
# Jul 11th 2017, 10:21 jarard01 ah
# Jul 11th 2017, 10:21 hmic you dont need the new part
# Jul 11th 2017, 10:20 jarard01 i got it :)
# Jul 11th 2017, 10:20 jarard01 $endPeriod = new FrozenTime($period->end_date->addDay(1));
# Jul 11th 2017, 10:18 hmic on a frozen object, you get a new one back with every change, while the original one does not change
# Jul 11th 2017, 10:18 hmic like: $endPeriod = $period->end_data->add('+1 days');
# Jul 11th 2017, 10:16 jarard01 $endPeriod->modify('+1 days');
# Jul 11th 2017, 10:16 jarard01 I thought this might work: $endPeriod = new FrozenTime($period->end_date);
# Jul 11th 2017, 10:05 hmic jarard01, as its frozen, you will get a new object back - use this
# Jul 11th 2017, 10:01 jarard01 is it possible to add a day to a frozentime?
# Jul 11th 2017, 09:54 wouter0100 Even when changing afterSave to afterSaveCommit fails. :(
# Jul 11th 2017, 09:52 wouter0100 The nested transaction that's failing is a ->link to a BelongsToMany within an afterSave event.
# Jul 11th 2017, 09:51 wouter0100 ange things, just usual queries that should succeed within the transaction.
# Jul 11th 2017, 09:51 wouter0100 What is the best way to debug an "Cannot commit transaction - rollback() has been already called in the nested transaction" exception? Error only occurs in prod and so hard to debug.. Code is exactly the same, as well as the database and the request. It just seems to rollback within this nested transaction for no reason. Query logs doesn't show str
# Jul 11th 2017, 09:50 abeltolu https://medium.com/@abeltolu/build-a-rest-api-using-cakephp-2-x-in-3-minutes-1abe842ad7a1
# Jul 11th 2017, 09:47 heter have a good sleep ;)
# Jul 11th 2017, 09:47 heter cool, ill wait for hosting providers to look on it and look on server configurations and maybe they will provide me more detailed informations about which differences on configurations causes this