Log message #4160780

# At Username Text
# Jul 20th 2018, 04:07 jslamka5685 delete anything you dont want once its local, redump and you have a clean sql export
# Jul 20th 2018, 04:06 jslamka5685 mysqldump
# Jul 20th 2018, 04:06 thomasnucleus I'm wondering how other developers handle this. I would like to get a copy of my production database to use for local development. Ideally I would need to sanitize private data. What is the best way to go about this?
# Jul 20th 2018, 01:48 jslamka5685 @beakman I am working on a concept and am building in Cake3. The docs were down last night so I ended up here :P
# Jul 20th 2018, 01:47 jslamka5685 @beakman You missed me by, like, one hour.
# Jul 19th 2018, 22:54 D-rex hah
# Jul 19th 2018, 22:54 D-rex oh sh*t
# Jul 19th 2018, 22:53 sdevore it’s in the url ;)
# Jul 19th 2018, 22:53 D-rex yeah
# Jul 19th 2018, 22:53 sdevore you mean the one at https://discourse.cakephp.org
# Jul 19th 2018, 22:52 D-rex what forum software is cakephp main site using?
# Jul 19th 2018, 22:09 lpouzenc thanks guys. Cake is great :-)
# Jul 19th 2018, 22:04 okelet Question rewritten: I have extended ADmad/JwtAuth.Jwt overriding the getUser method. If in that method I return an entity, I always get 401 unauthorized; if I return the entity as an array, it works fine. I want to return an entity because I would like to use some methods on the class, accessing the user using $this->Auth->user(). Is not possible to return an object instead an array?
# Jul 19th 2018, 21:52 okelet With some plugins to enhance autocomplete
# Jul 19th 2018, 21:51 okelet I use visual studio code without problems
# Jul 19th 2018, 21:42 lpouzenc Other question : what developer environnement fit the best for Cake 3.6 and autocomplete ?
# Jul 19th 2018, 21:37 lpouzenc admad, slackebot : $table->associations()->getByType('BelongsTo') (with "s") works as a charm
# Jul 19th 2018, 21:34 lpouzenc admad, slackebot : this sounds very good, I'll try right now
# Jul 19th 2018, 21:33 admad lpouzenc: $table->associations()->getByType('BelongTo')
# Jul 19th 2018, 21:31 asdfgh what do you mean with "needs new tag" ??
# Jul 19th 2018, 21:31 asdfgh i am using cakephp 3.5
# Jul 19th 2018, 21:31 asdfgh saeideng yes
# Jul 19th 2018, 21:22 lpouzenc I can't find a way to walk over associations in cake Table. I only find getter that need model Name. I understand there is lazy loading mechanics involved around there.
# Jul 19th 2018, 21:21 lpouzenc and during cake bake all, I have a list of some foreignKeys : ['adherent_type_id', 'ville_id'], I want to resolve this to a list that is ['AdherentTypes', 'Villes'] based on belongsTo() information.
# Jul 19th 2018, 21:19 lpouzenc https://paste.gnome.org/pfpfuqi2q
# Jul 19th 2018, 21:19 lpouzenc to put an example, I have this model :
# Jul 19th 2018, 21:12 lpouzenc CakePHP 3.6
# Jul 19th 2018, 21:11 lpouzenc I am in a custom helper, during "cake bake all", I generated Controller's index() method, I have a list of columns names from current model in input, they belongsTo() some others models, I want to ouput the list of those models.
# Jul 19th 2018, 21:07 lpouzenc Hi, as a CakePHP user, I am extending bake to generate some more code (I want to generate the stuff needed to have friendsofcake/Search working)
# Jul 19th 2018, 20:41 abdualelah.mdy thanks for help
# Jul 19th 2018, 20:41 abdualelah.mdy i will try
# Jul 19th 2018, 20:40 styks1987 I've got to head out, but maybe removing the form part and submitting values directly might also help
# Jul 19th 2018, 20:39 styks1987 I wonder if you need to alias 'username' and 'password'
# Jul 19th 2018, 20:35 abdualelah.mdy hashed
# Jul 19th 2018, 20:35 abdualelah.mdy yes
# Jul 19th 2018, 20:35 styks1987 Are you encrypting the password?
# Jul 19th 2018, 20:32 abdualelah.mdy i did all of this but all i get is wrong password or username
# Jul 19th 2018, 20:31 abdualelah.mdy File uploaded https://cakesf.slack.com/files/UBSRFQFLP/FBTJSQHMH/-.php / https://slack-files.com/T053DPNCM-FBTJSQHMH-90417b36eb
# Jul 19th 2018, 20:30 abdualelah.mdy File uploaded https://cakesf.slack.com/files/UBSRFQFLP/FBT6C7NM7/-.php / https://slack-files.com/T053DPNCM-FBT6C7NM7-5dd40b8241
# Jul 19th 2018, 20:28 styks1987 https://book.cakephp.org/3.0/en/controllers/components/authentication.html#customizing-find-query
# Jul 19th 2018, 20:28 styks1987 If you want to override the database fields you will need to override findAuth function