Log message #4192046

# At Username Text
# Jul 5th 2019, 11:15 dereuromark haha i like that @neothermic
# Jul 5th 2019, 11:12 charolastra *plural
# Jul 5th 2019, 11:11 charolastra that seems to be the problem. i have two tables, devices and portals. devices has an 'id' field as PK and portals has a 'device_id' which references devices.id. is plurar/singular correct here?
# Jul 5th 2019, 11:05 challgren Only if your db is keyed correctly
# Jul 5th 2019, 11:05 charolastra when baking a one to one relationship, should hasOne() and belongsTo() be handled in both models automaticly?
# Jul 5th 2019, 10:45 neothermic @dereuromark IMO I'd file that as a bug, you have to have some way of marking a file as "in use by magic" :P
# Jul 5th 2019, 10:04 felix.robaglia hello, is this normal $this->Session->read('username') returns null if i var_dump it in the view ? I don't know what is the best way to access current Session data in the view.
# Jul 5th 2019, 10:02 rchavik why is deprecation notices are thrown on the html output but not present in the logs?
# Jul 5th 2019, 09:46 rchavik found it..
# Jul 5th 2019, 09:44 rchavik how to get the whole ServerRequest::$params without triggering the deprecation warning? getParam() needs an argument
# Jul 5th 2019, 09:39 dereuromark Cake routing magic. The IdeHelper could generate a fake list of $x = new XController(); etc to avoid that maybe into some tmp file?
# Jul 5th 2019, 09:39 dereuromark the new version of phpstorm thinks controllers are "unused"....
# Jul 5th 2019, 08:59 rchavik getting "ActionDispatcher::addFilter() is deprecated. This is only available for backwards compatibility with DispatchFilters", which migration step should i read?
# Jul 5th 2019, 08:46 felix123 that's true, I guess I can just do it case by case too. thanks !
# Jul 5th 2019, 08:43 neothermic usually you'd only want a few actions to be root of the domain anyway
# Jul 5th 2019, 08:42 felix123 is this the correct way ?
# Jul 5th 2019, 08:42 felix123 $routes->connect('/login',['controller' => 'Users', 'action' => 'login']);
# Jul 5th 2019, 08:42 felix123 that's what im doing, but right now I do it for each action of the controller, like this :
# Jul 5th 2019, 08:40 neothermic you'd add a custom route in your routes config file for that
# Jul 5th 2019, 08:39 felix123 hello, i'd like to know if there is a way to tell cakePHP : all the actions of this controller can be called from the root url, like mydomain.fr/login instead of mydomain.fr/users/login
# Jul 5th 2019, 08:18 scuadra thank you very much
# Jul 5th 2019, 08:17 scuadra but from now on I'll use it
# Jul 5th 2019, 08:17 scuadra well I didn't know that was possible
# Jul 5th 2019, 08:15 admad why do you need to parse anything when you already have a FrozenTime object? Just use `$instance->i18nFormat()`
# Jul 5th 2019, 08:13 scuadra @admad well I tried using parseDate and parseDateTime but with no success. I am trying to format the created field which is "object(Cake\I18n\FrozenTime)" to be like ddMMYYYY
# Jul 5th 2019, 07:57 admad @scuadra I'll let you in on a secret, you access to the TimeHelper's code. So check what's in the `format()` method :slightly_smiling_face:
# Jul 5th 2019, 07:54 scuadra @admad thank you, but I can't understand which method is equivalent to TimeHelper->format() ?
# Jul 5th 2019, 07:44 admad @scuadra no, use the `Cake\I18n\Time` class directly. TimeHelper is just a wrapper for it
# Jul 5th 2019, 07:43 conehead But yes, you could initiate a new Instance
# Jul 5th 2019, 07:42 conehead Maybe you are looking for a Behavior?
# Jul 5th 2019, 07:42 conehead Helpers are for views
# Jul 5th 2019, 07:38 scuadra Hello. Is it possible to use Helper (in my case TimeHelper) in Table class?
# Jul 5th 2019, 01:01 BeBoo I am having issues with a new model/controller I baked. No errors when baking but when I access index, I get an error "unable to locate an object compatible with paginate". Table name is mailbox_aliases so the controller/model is created is MailboxAliases. When I debug $this->MailboxAliases, i get false.
# Jul 4th 2019, 19:02 dsar Hi
# Jul 4th 2019, 14:54 yamcomnet i did a hack :slightly_smiling_face: $configFile->write($licenseUrl. PHP_EOL);
# Jul 4th 2019, 14:48 yamcomnet is there some special characted i could use for new line
# Jul 4th 2019, 14:43 yamcomnet instead of new file, will write second string into same line
# Jul 4th 2019, 14:42 slackebot <yamcomnet>
# Jul 4th 2019, 14:42 yamcomnet trying to append text file with File Api like
# Jul 4th 2019, 13:32 louis Thank's !
# Jul 4th 2019, 12:59 admad `->extract('columnName')`