Log message #4189761

# At Username Text
# Jun 17th 2019, 12:08 mehov I normally have the feeling it should be the other way around too, but I came up with `$logTable->initiateLog()->setStoreId(1)->setPrice(9.99)->save()`. In my understanding, `initiateLog` would return a `newEntity()`, and the rest of the chain would be called on it, and the last `save()` being also called on the entity will have to figure out the corresponding table to actually save itself
# Jun 17th 2019, 12:04 dereuromark because it is a convention, but not a requirement to find the right one by inflection.
# Jun 17th 2019, 12:03 dereuromark you shouldnt need to IMO, it is usually the other way around.
# Jun 17th 2019, 11:59 mehov Hey guys, quick question is there an easy way to get a corresponding table class from an entity? I know there's [`getSource()`](https://api.cakephp.org/3.7/class-Cake.ORM.Entity.html#_getSource), but it gets me a string, which is good and, but I was hoping I'd avoid doing the tablelocator stuff
# Jun 17th 2019, 09:39 conehead @office You could still create your own controller with public access that redirects to the files you want (even out of the webroot folder)
# Jun 17th 2019, 09:36 eax Hey Folks. Cake3: I have a Nested Resource Route, that looks like: https://gist.github.com/eaxexe/eeb3b61e58a99885ad9a13805e5d18ce - The issue is that I can’t seem to do a /vehicles/:uuid/vehicle-properties/:uuid - I simply get a 404 on: Action VehiclesController::8c6ca9dcFd1744279c38Ed53cf2a85aa() could not be found, or is not accessible. Any ideas what could be wrong?
# Jun 17th 2019, 09:29 neon1024 Morning all :wave:
# Jun 17th 2019, 09:27 hmic office: the webroot is just that - the webroot. if you put a file there, it will be /file.ext in the url?!
# Jun 17th 2019, 09:19 office Webroort works fine, but i want to have public folder in cake root as url is very long if folder in webroot
# Jun 17th 2019, 09:17 hmic office: if you setup your webroot correctly, you can't/don't. just move your public folder to webroot instead!
# Jun 17th 2019, 09:17 kgb.acct.personal Nice try FBI
# Jun 17th 2019, 09:16 office HI, how can i give public acces to a folder located in root?
# Jun 17th 2019, 06:32 ra7bi Now i understand , thanks
# Jun 17th 2019, 06:26 ra7bi there is no validation for save function ?
# Jun 17th 2019, 06:24 ra7bi im modifying the data in PHP without form ,
# Jun 17th 2019, 06:22 kgb.acct.personal @ra7bi Use `patchEntity`
# Jun 17th 2019, 06:21 ra7bi in `edit` action i dont have `newEntity`
# Jun 17th 2019, 06:21 ra7bi how i can use validation on fly in `edit` action
# Jun 17th 2019, 05:32 kgb.acct.personal Can I do ORM stuff inside src/Console/Installer.php?
# Jun 17th 2019, 02:39 waspinator @darryl https://cakephp.org/get-involved#findjobdeveloper
# Jun 17th 2019, 02:34 darryl I'm new here and I'm looking for someone to help with a couple of PHP/CakePHP projects. I used to do the programming myself, but I just don't have the time anymore. Other Slacks I'm on have a Jobs channel people can post in, have you considered that? Or does anyone know of good websites to post on to find someone? It's full-time work in the Reno/Tahoe area.
# Jun 17th 2019, 00:11 graziel kind of hard to tell without all code thou
# Jun 17th 2019, 00:11 graziel no problem
# Jun 17th 2019, 00:11 swimboy I’m going to have to stop working on this now and pick it up again later. Thanks for your help.
# Jun 17th 2019, 00:09 graziel how you patch your entitry
# Jun 17th 2019, 00:09 graziel different error or same?
# Jun 17th 2019, 00:09 swimboy Still no go
# Jun 17th 2019, 00:08 graziel maybe i have older code but it should work
# Jun 17th 2019, 00:08 graziel Add a localized time, date or datetime format validation rule to a field.
# Jun 17th 2019, 00:07 swimboy Shoud that be `$validator->localizedDate('date', 'date');`
# Jun 17th 2019, 00:06 graziel $validator->localizedTime('date', 'date');
# Jun 17th 2019, 00:06 graziel there is different validator for localized format
# Jun 17th 2019, 00:06 swimboy Yes, I get a validation error
# Jun 17th 2019, 00:05 graziel you get validation error?
# Jun 17th 2019, 00:05 graziel but what do you mean accept format?
# Jun 17th 2019, 00:05 swimboy Nope, that doesn’t work either. Still only accepts it in “2019-06-16” format
# Jun 17th 2019, 00:04 graziel try ->setLocaleFormat('MM/dd/yyyy')
# Jun 17th 2019, 00:03 swimboy It’s frustrating. I know I have it working in one app I built two years ago, but I can’t figure out what I did.
# Jun 17th 2019, 00:02 graziel well you could write your own data type and set it manually in table
# Jun 17th 2019, 00:02 swimboy I dug through my old code, and the last time I just threw up my hands and wrote a function to change the format manually after submitting my form. It was a PITA because I had to call it every time I used a date in a form.
# Jun 17th 2019, 00:01 graziel something silly