Log message #4209811

# At Username Text
# Oct 21st 2019, 14:52 neon1024 They haven’t factored in that I’m on holiday for two weeks soon *mwuahaha*
# Oct 21st 2019, 14:51 slackebot1 <alexdd55976>
# Oct 21st 2019, 14:51 alexdd55976 u walked right into a trap
# Oct 21st 2019, 14:51 ricksaccous lol
# Oct 21st 2019, 14:50 neon1024 He’s suggesting new features to the client
# Oct 21st 2019, 14:50 neon1024 My boss is fiddling, and scope is a creepin’
# Oct 21st 2019, 14:50 neon1024 Now it’s.. not..
# Oct 21st 2019, 14:50 neon1024 It *was* a two page website, so I used Slim 4
# Oct 21st 2019, 14:47 ricksaccous @neon1024 are you using standalone ORM because you let something else handle the request/responses?
# Oct 21st 2019, 14:46 neon1024 Ah, sods law. I knew if I asked I’d solve it. As I am using stand-alone orm, the table locator needs to be told both the alias and the class name :face_palm:
# Oct 21st 2019, 14:45 neon1024 I don’t understand why the `contain()` can’t see that
# Oct 21st 2019, 14:44 neon1024 I have defined the association in my `SerialNumbersTable` class
# Oct 21st 2019, 14:44 slackebot1 <neon1024>
# Oct 21st 2019, 14:44 neon1024 `The Claims association is not defined on SerialNumbers.`
# Oct 21st 2019, 14:44 neon1024 I have a hasOne setup, and but keep getting an error for a missing association and I can’t understand why
# Oct 21st 2019, 13:35 holisticnetworking Very good. Thanks for your help, @ndm!
# Oct 21st 2019, 13:33 ndm Do that via associations, just like you'd do it anywhere else, like `$this->_table->SomeAssociation->SomeOtherAssociation->find()`.
# Oct 21st 2019, 13:32 holisticnetworking Accessing associated tables.
# Oct 21st 2019, 13:26 ndm Linking as in "creating associations"? Or as in "accessing associated tables"?
# Oct 21st 2019, 13:23 holisticnetworking What about linking another Model? Or do I do that through associations?
# Oct 21st 2019, 13:23 holisticnetworking Thank you, @ndm!
# Oct 21st 2019, 13:23 ndm `$this->_table` in 3.x
# Oct 21st 2019, 13:22 holisticnetworking Or for that matter, another Model altogether?
# Oct 21st 2019, 13:22 holisticnetworking I need to ensure that every record in Model A is linked to another record in Model B whenever records are added or modified in Model A. This seems like a natural fit for a Behavior. However, the trouble is that Behaviors don't seem to allow me to directly query the database in this way? How can I access the Model to which a Behavior is linked?
# Oct 21st 2019, 13:21 jotpe @ndm Thanks, I'll consider rewrite my code in a component then.
# Oct 21st 2019, 13:20 ndm Then you need to add a `null` check before trying to call the method.
# Oct 21st 2019, 13:20 scuadra @ndm that's the first thing I tried but got the error: " Call to a member function i18nFormat() on null "
# Oct 21st 2019, 13:19 ndm @jotpe The Flash helper only renders messages, the component sets them. If you want to set flash messages in the view layer, then you might be doing something "wrong". It's certainly possible by writing to the session like the component would, but probably not recommended.
# Oct 21st 2019, 13:15 ndm @scuadra `Time::i18nFormat()` is not a static call, but how you usually document methods of a class. `$application['payment_date']->i18nFormat(\IntlDateFormatter::SHORT)`
# Oct 21st 2019, 13:12 jotpe Is it anyhow possible to set Flash Messages from another Helper?
# Oct 21st 2019, 13:09 scuadra And also I have one more question: can I use viewBuilder()->setTemplate() to set a template from a Plugin?
# Oct 21st 2019, 13:06 scuadra @admad I tried _Time::i18nFormat($application['payment_date'])_ but got error "Using $this when not in object context"
# Oct 21st 2019, 13:03 kevin.pfeifer thx to @challgren and @admad I got my Custom Mailer Class working now :D
# Oct 21st 2019, 12:31 admad @scuadra `Time::i18nFormat()`
# Oct 21st 2019, 12:19 kevin.pfeifer @admad ok, thx for the info. I will look into this "MailerAwareTrait" structure.
# Oct 21st 2019, 12:18 scuadra Hello. In Cake 3.x how can I format my a date field in Controller with TimeHelper i18nformat() or something similar?
# Oct 21st 2019, 12:18 admad you should never need more than a single class to `getMailer()` in your controller / command / model to send a mail
# Oct 21st 2019, 12:16 admad and then your controllers would use MailerAwareTrait which would allow you to use those mailer classes
# Oct 21st 2019, 12:15 admad @kevin.pfeifer there's no need for a custom mailing component. Use mailer classes
# Oct 21st 2019, 12:12 alexdd55976 i just started with authentication against AD to make my point in choosing the framework... even the version i used worked fine
# Oct 21st 2019, 12:11 kevin.pfeifer ah ok^^