Log message #4053908

# At Username Text
# Jul 19th 2017, 09:35 hmic if you think it's wrong: open an issue on github, post the link :D
# Jul 19th 2017, 09:34 mirec it is not desired behavior
# Jul 19th 2017, 09:33 mirec but then I will omit other shutdown processes going after this one
# Jul 19th 2017, 09:33 hmic thats what i said - return it
# Jul 19th 2017, 09:32 mirec hmic: https://pastebin.com/dT38JvKx ... cause of problem is in ActionDispatcher::_invoke, when after shutdownProcess() call there is no response change detection, response is changed only if shutdown process returns response
# Jul 19th 2017, 09:29 ldsign Hi. How can I call getSource method from an Association in beforeSave? https://api.cakephp.org/3.4/class-Cake.ORM.Association.html
# Jul 19th 2017, 09:26 mirec give me a sec, I will do some pastebin
# Jul 19th 2017, 09:26 hmic it's not changing the things you can do, just how you do them
# Jul 19th 2017, 09:25 hmic just return or reassign instead of change the object
# Jul 19th 2017, 09:25 hmic because of the immutability
# Jul 19th 2017, 09:25 mirec why?
# Jul 19th 2017, 09:25 hmic a feature
# Jul 19th 2017, 09:24 mirec Response cannot be modified in Controller.shutdown process since using immutable responses... is it bug or feature?
# Jul 19th 2017, 09:06 birdy247 any ideas?
# Jul 19th 2017, 09:06 birdy247 suddenly all of my cake namespaces are "undefined"
# Jul 19th 2017, 09:06 birdy247 using php storm
# Jul 19th 2017, 09:06 birdy247 I have a cake project
# Jul 19th 2017, 08:52 saeideng `contain(table1.table2.table3)`
# Jul 19th 2017, 08:51 saeideng so `contain` return invalid result
# Jul 19th 2017, 08:51 saeideng `table2` joined filed is nullable and use left join
# Jul 19th 2017, 08:48 saeideng I think i need to open issue on github :grinning:
# Jul 19th 2017, 08:47 maymeow @neon1024 Vue can shgow rendered html on yur page with `div v-html="html"></div`
# Jul 19th 2017, 08:46 saeideng if I remember `table1->hasmany(table2)` and `table2->belongsTo(table3)`
# Jul 19th 2017, 08:43 saeideng if someone use `contain` for nested association(more than 3 table) with different type of association connect
# Jul 19th 2017, 08:40 saeideng i have a question
# Jul 19th 2017, 08:38 neon1024 I can only assume it’s the EagerLoader
# Jul 19th 2017, 08:38 neon1024 Why does a call to `contain()` need a data source configuration?
# Jul 19th 2017, 08:38 rogerpro Maybe, instead, ->sum() could make the conversion to sum time properly when summing MySQL time fields. Do you think guys that this would success as a PR?
# Jul 19th 2017, 08:38 rogerpro Those SEC_TO_TIME() and TIME_TO_SEC() functions are not implemented on CakePHP (https://book.cakephp.org/3.0/en/orm/query-builder.html#using-sql-functions).
# Jul 19th 2017, 08:37 rogerpro I need to use SEC_TO_TIME() and TIME_TO_SEC() MySQL functions but then the app becomes not portable to PostgreSQL; so finally I will save and sum seconds. The simples the better :slightly_smiling_face:
# Jul 19th 2017, 08:37 slackebot SEC_TO_TIME(SUM(TIME_TO_SEC(foo))) FROM test_time_sum; `
# Jul 19th 2017, 08:37 rogerpro Hi folks! Just a tip because I spent some time with this: be aware that MySQL is not summing time values as (I) expected. `/* MySQL test_time_sum */ CREATE TABLE test_time_sum ( id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, foo time ); INSERT INTO test_time_sum VALUES (1, ‘00:00:55’), (2, ‘00:00:13’), (3, ‘00:09:51’); /* returns 1019; expected 10:59 */ SELECT SUM(foo) FROM test_time_sum; /* returns 10:59 as expected */ S
# Jul 19th 2017, 08:36 saeideng you can send `html` or `json` in cell,helper and controller
# Jul 19th 2017, 08:35 neon1024 Plus it avoids the problem of introducing HTML markup into your javascript
# Jul 19th 2017, 08:33 maymeow old but i like it because i can use helpers from cakephp ;)
# Jul 19th 2017, 08:32 admad and yeah returning html fragments is old school. Return a json object and build required dom elements on client side
# Jul 19th 2017, 08:31 admad returning html for ajax request is not different than return html for a normal request, using cell or otherwise. Only difference is for you case you return only required html fragment instead of full html document
# Jul 19th 2017, 08:28 maymeow so... its possible to get cell over ajax or i have to call for json and render it with VueJS for example?
# Jul 19th 2017, 08:26 admad afaik that's not possible
# Jul 19th 2017, 08:24 ldsign (so cascade operations work)
# Jul 19th 2017, 08:24 ldsign Do you know how to set such a foreign key constraint in mysql...so a joined foreignKey with "model"-column and "foreign_key"-column?