Log message #4171884

# At Username Text
# Dec 31st 2018, 11:13 k4t hi @admad could you give me some hints how I can use slugs instead of id for view action (with CRUD plugin)?
# Dec 31st 2018, 10:55 bobby_1120 thanx and Happy New Year
# Dec 31st 2018, 10:55 bobby_1120 commit was missing, wrong properties into dbeaver
# Dec 31st 2018, 10:54 bobby_1120 I figured it out
# Dec 31st 2018, 10:51 challgren There’s like zero docs in book.cakephp.org about RegistryInteface::exists()
# Dec 31st 2018, 10:42 dereuromark you could also just do a normal find() or even find()->count()
# Dec 31st 2018, 10:42 dereuromark yeah, passing the id is pointless in this case
# Dec 31st 2018, 10:42 bobby_1120 :/
# Dec 31st 2018, 10:42 bobby_1120 but I try to check if any records is 1 for column is_admin
# Dec 31st 2018, 10:40 challgren $this->Users->exists([‘id’ => $id, ‘is_admin’ => 1]);
# Dec 31st 2018, 10:39 bobby_1120 https://thepasteb.in/p/vghO1EklqLWu3
# Dec 31st 2018, 10:37 challgren Why arent you passing an id along in the exists?
# Dec 31st 2018, 10:36 bobby_1120 yes
# Dec 31st 2018, 10:35 challgren Does your database have at least 1 record where is_admin is 1?
# Dec 31st 2018, 10:35 challgren Bobby what are you trying to accomplish??
# Dec 31st 2018, 10:34 bobby_1120 nope, don'twork for me
# Dec 31st 2018, 10:27 dereuromark if docs are not correct, please make a PR to fix em.
# Dec 31st 2018, 10:27 challgren What are you trying to accomplish without sending the id too?
# Dec 31st 2018, 10:26 bobby_1120 columnname is is_admin
# Dec 31st 2018, 10:26 bobby_1120 3.5.11
# Dec 31st 2018, 10:25 barlas Nevermind, documentation wasn't correct.
# Dec 31st 2018, 10:25 challgren What version of cake?
# Dec 31st 2018, 10:25 challgren $this->Users->exists([‘is_admin’ => 1])
# Dec 31st 2018, 10:25 bobby_1120 dont work
# Dec 31st 2018, 10:24 challgren $this->Users->exist([‘is_admin’ => 1])
# Dec 31st 2018, 10:24 bobby_1120 $this->Users->exists(['isAdmin' => 1])
# Dec 31st 2018, 10:24 challgren Your array is wrong bobby
# Dec 31st 2018, 10:24 bobby_1120 $this->Users->exists(['isAdmin'] => 1) return false
# Dec 31st 2018, 10:23 bobby_1120 i have problem with Table::exists
# Dec 31st 2018, 10:22 bobby_1120 hi alll
# Dec 31st 2018, 10:21 challgren @nickbusey just a FYI underscore is not allowed in http headers so you’ll also need to add `'name' => 'api-key'`
# Dec 31st 2018, 10:17 barlas Can I ask Phinx queries here or is that out of scope?
# Dec 31st 2018, 06:48 challgren @nickbusey in the `config/users.php`
# Dec 31st 2018, 05:31 NickBusey I tried setting `$this->Auth->config('authenticate', ['CakeDC/Users.ApiKey' => ['type' => 'header']]);` in AppController initialize but that returns `Authentication adapter "CakeDC/Users.ApiKey" was not found.` even though I am using apikey
# Dec 31st 2018, 05:31 nayakvradhit While installing cakephp 2.10 I am getting the error please change the value of 'security.salt' in my config/core.php to a salt value specific to your application.(CORE/Cake/Utility/Debugger.php) Similarly for 'Security.cipherseed'
# Dec 31st 2018, 05:17 NickBusey err cakedc/auth, you get the idea.
# Dec 31st 2018, 05:13 NickBusey For foc/auth, here: https://github.com/CakeDC/auth/blob/master/Docs/Documentation/ApiKeyAuthenticate.md#setup it says you can override the default options for ApiKeyAuthenticate by setting a key on $config, where would that be done?
# Dec 31st 2018, 03:12 waspinator how would I get the $io thing from Cake\Console\ConsoleIo'
# Dec 31st 2018, 00:17 rightscoreanalysis i feel that
# Dec 31st 2018, 00:16 sdevore I do like using the matching approach makes the intent clearer to my old brain when I come back
# Dec 31st 2018, 00:16 rightscoreanalysis should have been start_date <= :slightly_smiling_face: