# |
Oct 4th 2016, 13:47 |
ard1m14 |
I agree but I am testing legacy code so don't want to spend too much effort fixing things which were done a while ago |
# |
Oct 4th 2016, 13:46 |
TheBreaker |
1 big ol json obj |
# |
Oct 4th 2016, 13:46 |
TheBreaker |
i fell into that |
# |
Oct 4th 2016, 13:46 |
TheBreaker |
yea |
# |
Oct 4th 2016, 13:46 |
Neon1024 |
Iâ??d be a little cautious that it would make me lazy and save everything as json :p |
# |
Oct 4th 2016, 13:46 |
ard1m14 |
thanks |
# |
Oct 4th 2016, 13:45 |
TheBreaker |
they are pretty nice |
# |
Oct 4th 2016, 13:45 |
Neon1024 |
Probably should really |
# |
Oct 4th 2016, 13:45 |
TheBreaker |
and i have to type cast the col its self as a text col to not crap out |
# |
Oct 4th 2016, 13:45 |
Neon1024 |
Iâ??ve not played with json columns in mysql yet :) |
# |
Oct 4th 2016, 13:45 |
TheBreaker |
i tried it with older 2.0 and i get a bunch of pdo errors |
# |
Oct 4th 2016, 13:45 |
TheBreaker |
yea i am for 1 project |
# |
Oct 4th 2016, 13:45 |
Neon1024 |
Assuming you were on MySQL 5.7+ |
# |
Oct 4th 2016, 13:44 |
Neon1024 |
TheBreaker: Not too sure, but you could certainly write your own data type class for it |
# |
Oct 4th 2016, 13:44 |
TheBreaker |
does 3.3 support mysql json datatype? |
# |
Oct 4th 2016, 13:44 |
Neon1024 |
More to the point, Iâ??d be worried about a controller with a requestAction call in it |
# |
Oct 4th 2016, 13:44 |
Neon1024 |
As you probably donâ??t need to test requestAction |
# |
Oct 4th 2016, 13:44 |
Neon1024 |
Iâ??d mock it myself, and set the return |
# |
Oct 4th 2016, 13:41 |
ard1m14 |
Is there a known issue around this? |
# |
Oct 4th 2016, 13:41 |
ard1m14 |
I am trying to test a controller action which has a requestAction in, but when the test executes the requestAction line it just bombs out with no error message |
# |
Oct 4th 2016, 13:40 |
ard1m14 |
Hi |
# |
Oct 4th 2016, 13:13 |
dereuromark |
at least over a bunch of ordered ones |
# |
Oct 4th 2016, 13:13 |
dereuromark |
dont think so, but it is sure the smartest approach for php :slightly_smiling_face: |
# |
Oct 4th 2016, 13:10 |
Neon1024 |
Is there an actual name for the software pattern of using arrays for param options? |
# |
Oct 4th 2016, 12:51 |
charolastra |
looking forward to it :) |
# |
Oct 4th 2016, 12:48 |
Tippexs |
@charolastra: I will try to get a better / nicer solution and come back to u |
# |
Oct 4th 2016, 12:47 |
charolastra |
Tippexs: not very ellegant but it does the job, thanks |
# |
Oct 4th 2016, 12:47 |
flangofas |
@asunay I am not sure what do you mean mate :slightly_smiling_face: |
# |
Oct 4th 2016, 12:47 |
Tippexs |
Is this the way to go? Or should I set the result in the PagesController initialize method? |
# |
Oct 4th 2016, 12:47 |
Tippexs |
Hi together - i have a kind of a design question. On my ladingpage I need the result of an AppointmentsControllers method. I am going to display free apointments on my landingpage. now my question: Currently i use the _serialize method to get the result of this method as json output and do a json_decode on my frontpage. |
# |
Oct 4th 2016, 12:46 |
neothermic |
@dereuromark the test was fixed before your latest comment btw ;) |
# |
Oct 4th 2016, 12:38 |
asunay |
its not update field i want to update @flangofas |
# |
Oct 4th 2016, 12:38 |
asunay |
I made behavior with after safe... I need read ID form currently saved item ```$entity->get('id')``` ? ... then i need update one field based on ID (i using function which encode it do string and returns is)... This is where i stopped... |
# |
Oct 4th 2016, 12:36 |
Tippexs |
@charolastra: try this http://codepad.org/ooF4B7R9 |
# |
Oct 4th 2016, 12:36 |
flangofas |
What do you mean? |
# |
Oct 4th 2016, 12:35 |
asunay |
@flangofas i read this... but maybe i forget something -> how i commit changes? |
# |
Oct 4th 2016, 12:33 |
charolastra |
yes, tried to pass it as the 3rd parameter of the 'url' option but it gets ignored |
# |
Oct 4th 2016, 12:33 |
Tippexs |
this will help you. you can set your controllers method and send your id |
# |
Oct 4th 2016, 12:33 |
flangofas |
@asunay just create a callback in the table afterSave - http://book.cakephp.org/3.0/en/orm/table-objects.html#event-list |
# |
Oct 4th 2016, 12:32 |
Tippexs |
http://book.cakephp.org/3.0/en/views/helpers/form.html#setting-a-url-for-the-form |
# |
Oct 4th 2016, 12:31 |
charolastra |
not quite. a view calls add() on an other controller and i'd like to return the the current view. so the ID needs to be passed along so it can be used with $this->redirect() |