Log message #4116753

# At Username Text
# Feb 13th 2018, 10:42 michaelze I'm using it to build a query... The form is a search form...
# Feb 13th 2018, 10:40 neon1024 You might want to define it as string and implode it with commas
# Feb 13th 2018, 10:40 neon1024 Depends on what you’re doing with your tag data
# Feb 13th 2018, 10:40 neon1024 Otherwise you’d need to create an associated schema for Tags and define your tag name as string
# Feb 13th 2018, 10:40 neon1024 The data type for the many tags, I’d probably not define it, and deal with it manually
# Feb 13th 2018, 10:40 michaelze Okay, the name doesn't matter here, I get it... What about the type?
# Feb 13th 2018, 10:39 hmic it doesnt matter here
# Feb 13th 2018, 10:39 neon1024 Yeah, the name of the field still doesn’t matter ;)
# Feb 13th 2018, 10:38 michaelze You have to implement a method to return the schema for a modelless form: https://book.cakephp.org/3.0/en/core-libraries/form.html#creating-a-form
# Feb 13th 2018, 10:38 neon1024 and also form post data for patching back to the entity
# Feb 13th 2018, 10:38 neon1024 The field names, just match up data to the forms passed entity
# Feb 13th 2018, 10:37 neon1024 The name doesn’t matter
# Feb 13th 2018, 10:37 neon1024 It’s modeless
# Feb 13th 2018, 10:37 neon1024 There is no schema
# Feb 13th 2018, 10:37 michaelze Should the name of the control also be tags._ids? What would the schema look like?
# Feb 13th 2018, 10:36 neon1024 What you name the field doesn’t really matter
# Feb 13th 2018, 10:34 hmic select with the options multiple true, maybe? or checkbox+multiple
# Feb 13th 2018, 10:33 hmic michaelze: sure, provide the options in the array
# Feb 13th 2018, 10:33 neon1024 Yes
# Feb 13th 2018, 10:33 michaelze In a model form I can use the form helper like this: $this->Form->control('tags._ids'). How do I have to configure the schema of the modelless form? What's the name of the control?
# Feb 13th 2018, 10:33 michaelze Hi! Is it possible, in a modelless form, to have a field which basically behaves like a list of checkboxes as if it was a belongsToMany association on a normal model form?
# Feb 13th 2018, 10:33 ricksaccous haha
# Feb 13th 2018, 10:33 neon1024 Just going to be an obscure error in my code I bet ;)
# Feb 13th 2018, 10:32 ricksaccous ah ok
# Feb 13th 2018, 10:32 neon1024 It’s a good guess, but no. As I’m only associating an entity. So I’m not writing to it
# Feb 13th 2018, 10:32 ricksaccous @neon1024 if i took a wild guess at this, accessibility in Entity
# Feb 13th 2018, 10:30 neon1024 I am not submitting the id, or at least. It’s not making it into the patched entity, perhaps that’s why
# Feb 13th 2018, 10:23 neon1024 If I post the primary key of an association, it shouldn’t be create a new entity should it? My code is doing that and I can’t think why
# Feb 13th 2018, 10:22 neothermic aha, there we go, did the saveAssociated against the wrong part of the data :)
# Feb 13th 2018, 10:09 neothermic acosonic, are you able to install PHP extensions?
# Feb 13th 2018, 10:08 neothermic acosonic: don't use Security::rijndael
# Feb 13th 2018, 10:07 javier_rodri1989 I have this error at create model by console
# Feb 13th 2018, 10:07 neothermic so I've got a HABTM association saving in cake2 using saveAssociated, but when I put the associated model in the find, I get back an empty array. I'm 99.8% sure I've set the HABTM up right, any thoughts on how to debug the assocation?
# Feb 13th 2018, 10:07 javier_rodri1989 File uploaded https://cakesf.slack.com/files/U8W9G2EK0/F9879F4LS/image.png / https://slack-files.com/T053DPNCM-F9879F4LS-26f421a416
# Feb 13th 2018, 10:05 neothermic Hmm...
# Feb 13th 2018, 09:54 hmic which 16.04 is
# Feb 13th 2018, 09:45 neon1024 I’ve not had any problems with the 16 releases on my laptop, but I stick to the LTS ones
# Feb 13th 2018, 09:37 acosonic Didin't see if anyone responded...
# Feb 13th 2018, 09:37 acosonic Ubuntu 16.x is worse crap they released EVER, I was happy with 14
# Feb 13th 2018, 09:37 acosonic hm, sorry my IRC client crashed whole crappy ubuntu 16.x
# Feb 13th 2018, 09:20 acosonic I was thinking of encrypting user's data in database somehow with user's pincode or password... Not sure how to do it...