Log message #4201071

# At Username Text
# Sep 2nd 2019, 19:33 entry_lvl_dev whats the best way to find the view thats associated with that url
# Sep 2nd 2019, 19:33 entry_lvl_dev im brand new to cakephp.. whats the quickest way to find out the view and controller for a url? say locahost/store/bakery
# Sep 2nd 2019, 19:08 dereuromark @jotpe I finalized it. Thanks to your input it can now also more correctly annotate the actual ones, by not adding the ones that are assignment, and thus wrong to add :slightly_smiling_face:
# Sep 2nd 2019, 17:12 cnizzardini n/m in the constructor I guess
# Sep 2nd 2019, 17:09 cnizzardini Is there a way to set the action on Cake\Http\ServerRequest
# Sep 2nd 2019, 16:18 neon1024 Thanks everyone! :duck:
# Sep 2nd 2019, 16:17 neon1024 …as I will only care about the form inputs the user might have changed!
# Sep 2nd 2019, 16:15 neon1024 Perhaps I’ll look at the dirty props and check them myself :slightly_smiling_face:
# Sep 2nd 2019, 16:13 neon1024 I tried this, only to realise the Form entity is always dirty
# Sep 2nd 2019, 16:11 neon1024 Maybe if it’s always versioned a save *should* always create a new version :thinking_face: But I don’t want duplicates of the same data :rubberduck:
# Sep 2nd 2019, 16:10 neon1024 Ay dios mio!
# Sep 2nd 2019, 16:10 neon1024 So if I want to conditionally duplicate based on if the data has changed I’m going to need to parse all the properties? :grimacing:
# Sep 2nd 2019, 16:09 neon1024 I have Forms hasMany Questions, and `$form->getDirty === ['questions']` even though the property marshals entities correctly and they have id’s, and the question entities are not dirty
# Sep 2nd 2019, 16:09 dereuromark patching doesnt see/check if the values before and after are identical
# Sep 2nd 2019, 16:06 neon1024 Why would my form always be dirty even if I don’t change it?
# Sep 2nd 2019, 16:02 dereuromark Sure, shouldnt be hard to build in based on the env data coming in
# Sep 2nd 2019, 16:01 yadav.manu36 Hi All Can we create route cache according different different domains. because i have used multiple domain and these domain pointed on a single CakePHP setup
# Sep 2nd 2019, 15:30 spriz @jeremy.halin I added the monolog code to the gist :slightly_smiling_face: Good luck! I have to go now, but feel free to ask any questions
# Sep 2nd 2019, 15:29 neon1024 @val I’d say `$entity->getErrors()`
# Sep 2nd 2019, 15:28 spriz Oh, but we are using it with `monolog` as that is well known to me
# Sep 2nd 2019, 15:26 spriz @jeremy.halin: Take a look at https://gist.github.com/Spriz/2584a07ef489aef2e3667650847f93b2 :slightly_smiling_face:
# Sep 2nd 2019, 15:24 spriz Ah, thanks @neon1024! Jeremy, we are using sentry for both web and cli things
# Sep 2nd 2019, 15:19 neon1024 @spriz :point_up:
# Sep 2nd 2019, 15:06 jeremy.halin Hi, I'm using Sentry to get error reporting. It's working fine with their one line code `Sentry\init(['dsn' => '***']);`, but I'm not sure where to place it. What's the cleanest way ? I've put it in `config/bootstrap.php`. Also, if anyone using a bug reporting tool like Sentry, did you succeed to get errors from CakePHP CLI ? Can't get it work in this mode. Thanks!
# Sep 2nd 2019, 15:05 cnizzardini https://github.com/cnizzardini/cakephp-yummy
# Sep 2nd 2019, 15:05 cnizzardini This is a cake plugin that I've split out into its own project, it no longer has an app.php to reference, and I can't figure out how to fake it in there when running unit tests.
# Sep 2nd 2019, 15:04 cnizzardini I am working on splitting this out of a parent project and after having done so on my localhost none of the unit tests are working. Doesn't seem to be loading fixtures like it was: https://github.com/cnizzardini/cakephp-yummy
# Sep 2nd 2019, 15:03 cnizzardini Agreed, but I am trying to understand how to have a plugin as a stand-alone project and would like to learn how to do this anyways.
# Sep 2nd 2019, 14:59 val There is `Model::validates()` in 2.x. What's its alternative in 3.x?
# Sep 2nd 2019, 14:39 dereuromark $entity->setError(), should be noted in migration guide I hope.
# Sep 2nd 2019, 14:39 val Hi, how to invalidate a field in 3.x Table class? There is `invalidate()` method in 2.x.
# Sep 2nd 2019, 14:37 dereuromark Some IDE people here that can help me test a new beta feature for IdeHelper? https://github.com/dereuromark/cakephp-ide-helper/pull/142 Auto collecting template variables. For me, it works quite well ``` -> generate_link | * @var \App\View\AppView $this | + * @var mixed $content | + * @var mixed $types | */ ```
# Sep 2nd 2019, 14:23 neon1024 Feels like a job for a recursive function
# Sep 2nd 2019, 14:07 dereuromark I updated the PR, you can test it out.
# Sep 2nd 2019, 13:54 ndm There's no such method AFAIK.
# Sep 2nd 2019, 13:44 neon1024 I’d like to kinda check a whole marshalled entity and it’s associations
# Sep 2nd 2019, 13:43 neon1024 I presume the core farms out each `isDirty()` check to each association
# Sep 2nd 2019, 13:43 neon1024 Before I write a method to check an entity and all it’s associations for dirty fields, is there something which already does this?
# Sep 2nd 2019, 11:49 neon1024 @ndm :clap: Thanks
# Sep 2nd 2019, 11:49 neon1024 Seems I’m looking for `EagerLoader::contain()`
# Sep 2nd 2019, 11:49 ndm @neon1024 `\Cake\ORM\AssociationsNormalizerTrait`