Log message #4181554

# At Username Text
# Mar 31st 2019, 18:09 adithya Hi, on the webpage im building i collect some data before the user signs up or logs in, how would i save this data to my database, do i add this data to the sign up /login api would that be a good practice? or is there any other way i could achieve this?
# Mar 31st 2019, 10:07 edgaras.jan https://www.php.net/manual/en/function.array-diff.php
# Mar 31st 2019, 09:33 birdy247 because it exists in array 2
# Mar 31st 2019, 09:32 birdy247 In this example, what is the best way to remove the 108,116 item from Array1
# Mar 31st 2019, 09:32 slackebot2 <birdy247>
# Mar 31st 2019, 01:49 challgren https://github.com/cakephp/cakephp/releases/tag/3.8.0-beta1
# Mar 30th 2019, 18:35 challgren https://book.cakephp.org/3.0/en/views/helpers/form.html
# Mar 30th 2019, 12:03 Vinoth need an expert advice
# Mar 30th 2019, 12:03 Vinoth what is the best way to get input in the form.?
# Mar 30th 2019, 12:02 Vinoth hi
# Mar 30th 2019, 08:14 grossolive4 https://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html#cachehelper-removed what a pity
# Mar 29th 2019, 20:07 ricksaccous that's more like post-processing after query
# Mar 29th 2019, 20:07 ricksaccous i'd say no since most likely cake is not capable of it... unless you want to patchEntity and manually hydrate it, lol, you'd have to do that for all non-hydrated fields
# Mar 29th 2019, 20:06 ricksaccous sure
# Mar 29th 2019, 20:06 ricksaccous not srue
# Mar 29th 2019, 20:03 itmpls no way to force it?
# Mar 29th 2019, 20:02 itmpls ah
# Mar 29th 2019, 20:02 ricksaccous probably manual joins aren't compatible with hydration
# Mar 29th 2019, 20:02 itmpls yeah
# Mar 29th 2019, 20:02 ricksaccous manual joins?
# Mar 29th 2019, 20:02 itmpls why would a field that's datetime when joined not pull in as a FrozenTime but other fields are?
# Mar 29th 2019, 19:29 ricksaccous how would i redirect to the current page i'm on, with all params and everything
# Mar 29th 2019, 18:40 ricksaccous oh awesome
# Mar 29th 2019, 18:33 itmpls ah, visibleProperties()
# Mar 29th 2019, 18:24 ricksaccous rather
# Mar 29th 2019, 18:24 ricksaccous or what you want
# Mar 29th 2019, 18:24 ricksaccous that's prob not the same thing though
# Mar 29th 2019, 18:24 ricksaccous and it would have all the columns with their types
# Mar 29th 2019, 18:24 ricksaccous i think you can get the schema information of a table
# Mar 29th 2019, 18:23 itmpls it seems like it'd be an easy thing
# Mar 29th 2019, 18:23 itmpls i'm just curious for a way that doesn't involve hardcoding field names yeah
# Mar 29th 2019, 18:23 ricksaccous because you are making your own columns?
# Mar 29th 2019, 18:22 ricksaccous ?
# Mar 29th 2019, 18:22 ricksaccous so you couldn't even rely on the schema
# Mar 29th 2019, 18:22 itmpls so i might not know the fields ahead of time
# Mar 29th 2019, 18:22 ricksaccous oh
# Mar 29th 2019, 18:22 ricksaccous if you just don't want them to be frozendates or whatever
# Mar 29th 2019, 18:22 itmpls this is a case where it can be random (since its reporting and may be various random fields)
# Mar 29th 2019, 18:22 ricksaccous there's also the database types you could play around with
# Mar 29th 2019, 18:22 ricksaccous or whatever
# Mar 29th 2019, 18:22 ricksaccous you can just define all date fields in an array and do foreach ($dateFieldArray as $dateField) { processDateField($entity->{$dateField});