Log message #4188820

# At Username Text
# Jun 7th 2019, 19:59 ricksaccous haven't used it in a while
# Jun 7th 2019, 19:59 ricksaccous I think that's how it works anyway
# Jun 7th 2019, 19:59 ricksaccous if it doesn't save
# Jun 7th 2019, 19:59 ricksaccous yeah and you can put in if statements and rollbacks
# Jun 7th 2019, 19:58 hollistergraham123 Or can I do this?
# Jun 7th 2019, 19:57 hollistergraham123 Right I have that page open. But I mean utilizing the ORM. so I can do $this->Table->save() still
# Jun 7th 2019, 19:56 challgren @hollistergraham123 https://book.cakephp.org/3.0/en/orm/database-basics.html#using-transactions
# Jun 7th 2019, 19:55 hollistergraham123 Is there some way to wrap a series of ORM queries and have it roll back all of them if any of them fail?
# Jun 7th 2019, 13:47 niel45 I don't see a problem with miltiple loops though. Separate them into their own methods if you want to keep the concerns separate though
# Jun 7th 2019, 13:47 niel45 if you're worried about too many foreachs, do the processing of the "2" arrays as part of the one loop. i.e. call different methods based on the date
# Jun 7th 2019, 13:46 scuadra and thank you for your time
# Jun 7th 2019, 13:46 scuadra @ricksaccous ok
# Jun 7th 2019, 13:45 ricksaccous @scuadra well if you want play with Hash:: but i don't think in the end it will do anything different, especially since I doubt it will natively do the date comparisons for you
# Jun 7th 2019, 13:43 scuadra @ricksaccous I want to divide the initial array and then to foreach the resulting 2 arrays. I thought there will be too many foreach's
# Jun 7th 2019, 13:42 niel45 yup, KISS
# Jun 7th 2019, 13:41 ricksaccous I mean when it's easy enough to just foreach it i'd just do that
# Jun 7th 2019, 13:41 scuadra I thought there is a better way using Hash::extract or Hash:combine
# Jun 7th 2019, 13:40 ricksaccous what's wrong with a loop and check?
# Jun 7th 2019, 13:39 scuadra How can I divide the array to 2 other arrays based on the date_start is before or after the current date?
# Jun 7th 2019, 13:37 slackebot 'image' => '/images/products/2.jpg' ), 'Category' => array( 'id' => '3', 'name' => 'My Category 3' ) ), ... )
# Jun 7th 2019, 13:37 scuadra Let's say I have the following array array( (int) 0 => array( 'Product' => array( 'id' => '1', 'category_id' => '2', 'title' => 'Product1', 'date_start' => '2019-03-10', 'image' => '/images/products/1.jpg' ), 'Category' => array( 'id' => '2', 'name' => 'My Category 2' ) ), (int) 1 => array( 'Product' => array( 'id' => '2', 'category_id' => '3', 'titleg' => 'Product2', 'date_start' => '2019-07-01',
# Jun 7th 2019, 13:36 scuadra Hello. I have a question regarding Cake 2.x
# Jun 7th 2019, 12:16 yamcomnet anyone got dropzone.js working with cake securityComponent ?
# Jun 7th 2019, 11:39 neon1024 We implemented a Middleware to change the headers to match our requirements
# Jun 7th 2019, 11:39 neon1024 First place I would look would be in the Response class
# Jun 7th 2019, 11:38 neon1024 My guess would be to aid developers and beginners in being able to quickly see their code changes as they develop
# Jun 7th 2019, 11:38 neon1024 It’s my understanding that those headers are sent even when debug is false
# Jun 7th 2019, 10:52 thomas465 Is there a good explanation as to why running with `debug = true` causes the response to be sent with `Cache-Control: no-store, no-cache, must-revalidate` ? I have been trawling through the code but can’t see where this is behaviour is triggerd ?
# Jun 7th 2019, 10:24 liaogz82 and I am not using unit testing for now
# Jun 7th 2019, 10:24 liaogz82 yeah it is E_ALL
# Jun 7th 2019, 09:25 challgren If your using Unit Testing check your phpunit.xml for a `<phpunit><php><ini name="error_reporting" value="32767"/></php></phpunit>`
# Jun 7th 2019, 09:23 challgren I personally use E_ALL
# Jun 7th 2019, 09:22 challgren Somewhere near line 175 depending on your config
# Jun 7th 2019, 09:22 challgren In your src/config/app.php look for Error[errorLevel]
# Jun 7th 2019, 09:21 liaogz82 where can I check that?
# Jun 7th 2019, 09:19 challgren Do you maybe have deprecation notices turned off in your error_reporting?
# Jun 7th 2019, 09:19 liaogz82 cos both uses docker
# Jun 7th 2019, 09:18 liaogz82 ok so how is it possible that it shows up on my DO server when it does not show up on localhost
# Jun 7th 2019, 09:18 liaogz82 ops
# Jun 7th 2019, 09:18 liaogz82 the `getErrors` used to be errors
# Jun 7th 2019, 09:18 challgren ahh thats the Entity