Log message #4179065

# At Username Text
# Mar 11th 2019, 09:09 neon1024 Playing with `array_diff_assoc()` gives an ‘Array to string conversion’ warning, as the entity, when cast to array, obviously has nested array dimensions
# Mar 11th 2019, 09:08 neon1024 I’ve found this necessary because saving the entity will only update new records, the parent has dependant, so delete is fine, but updating existing data will not remove ‘missing’ association data
# Mar 11th 2019, 09:08 neon1024 My use-case is that I’m trying to consume remote data and reflect it in my local data store. However my current code does not cope with local association data which exists, but is not in the remote, and I need to delete that local data if it’s not in the remote. So I’m writing a comparison function to find the differences so I can process that return to update my local data store.
# Mar 11th 2019, 09:07 neon1024 Anyone know how the internals of patchEntity works to mark entity properties as dirty? I’m trying to achieve something similar using `array_diff_assoc()` but it seems to not like entities with associated data
# Mar 11th 2019, 08:53 ntrhieu1905 How to fix confirm form resubmission??? Can help me?
# Mar 11th 2019, 06:45 marwan.salim Hi team. May I know do CakePHP support `MySQL View` , if not how to handle this in migrations ?
# Mar 10th 2019, 17:37 marek.sebera related issue about oscilating exception output is fresh here https://github.com/cakephp/cakephp/issues/13040
# Mar 10th 2019, 17:37 marek.sebera Hi folks, is setting 'debug' to false in ExceptionRenderer, the correct way to hide sensitive debug layout/output, without disabling debug application-wide ?
# Mar 10th 2019, 14:26 grossolive4 How to update entity in afterSave, thanks !
# Mar 10th 2019, 14:26 grossolive4 Hello to all.
# Mar 10th 2019, 14:25 slackebot1 <grossolive4>
# Mar 9th 2019, 20:43 jslamka5685 To fix, on each entity within a collection run $_collection_entity->setVirtual([]);
# Mar 9th 2019, 20:16 jslamka5685 Is there a method for including virtualFields only when you want them?
# Mar 9th 2019, 12:35 graziel what about using https://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::diff
# Mar 9th 2019, 12:34 neon1024 Or could I just cast to array and use array_intersect or something like that? How would that work for multi dimensional entity arrays with nested data?
# Mar 9th 2019, 12:33 neon1024 Has anyone built something which compares entities and shows the differences?
# Mar 9th 2019, 12:14 neon1024 Morning
# Mar 9th 2019, 11:43 chunu anyone here to help?
# Mar 9th 2019, 11:43 chunu hello
# Mar 8th 2019, 19:12 mdotobie gotcha @admad, so I went back to my original strategy of only running the format validation rules if there is data present, I even abstracted it away to a method called `hasContent`
# Mar 8th 2019, 18:33 admad @mdotobie it's not cause notEmpty() is a special validation method not a validation rule
# Mar 8th 2019, 16:20 mdotobie https://cakesf.slack.com/archives/C053DPNGT/p1552003829368200
# Mar 8th 2019, 16:20 mdotobie Referencing this code. Is there a way to include the `last` key on the `allowEmpty` and `notBlank` validation methods. I don’t want the user to see the errors related to incorrect formats until they have corrected the error about missing value.
# Mar 8th 2019, 16:16 mike271 db session engine*
# Mar 8th 2019, 16:16 mike271 I see this is the default for the db handler in cake
# Mar 8th 2019, 16:16 mike271 http://php.net/manual/en/session.configuration.php#ini.session.serialize-handler
# Mar 8th 2019, 16:15 mike271 Is there a special reason to use 'php' instead of 'php_serialize' for session handling? I cannot find much information about it.
# Mar 8th 2019, 16:13 sdevore Mostly when I am doing model changes or large imports of data. I do have one place where I use a queue to update some counters after some common operations, mainly because I use the counters to speed up some report queries
# Mar 8th 2019, 15:58 itmpls only after batch imports..
# Mar 8th 2019, 15:58 itmpls you run it just once when needed?
# Mar 8th 2019, 15:56 itmpls interesting
# Mar 8th 2019, 13:32 dereuromark with deferred Script output yes
# Mar 8th 2019, 13:28 grossolive4 Hi everyone, Can postLink be used in Form?
# Mar 8th 2019, 11:41 neon1024 Rather than `boolean` :) :rubberduck:
# Mar 8th 2019, 11:41 neon1024 `'line_rental_included' => ['type' => 'integer', 'length' => 1, 'null' => false],`
# Mar 8th 2019, 11:37 neon1024 It’s a plugin!
# Mar 8th 2019, 11:36 neon1024 Worth downgrading to 3.6?
# Mar 8th 2019, 11:36 neon1024 I have a question, I’ve checked out a project, done `composer install`, went to run the tests and am seeing `InvalidArgumentException: Cannot convert value of type `boolean` to integer` which seems to be related to a Fixture. I’m guessing that it might be related to the marshaller, but I’m unsure why this would be happening unless Cake has changed something, this is running 3.7.4
# Mar 8th 2019, 11:35 neon1024 These are the questions I ask myself before implementing caching
# Mar 8th 2019, 11:35 neon1024 Is the query slow? How much data is there? How often is it run? Do you need caching? Are you pre-optimizing?
# Mar 8th 2019, 11:34 neon1024 I guess you might mean the query params are year and user, not that you want to cache a years worth of query data?