Log message #4116765

# At Username Text
# Feb 13th 2018, 11:42 ahmed_bodi Hi guys, I'm having an issue with cakephp. It doesnt appear to be loading the language .po files when i try and use the translate
# Feb 13th 2018, 11:25 neon1024 Ah, I should ask in the foc channel :slightly_smiling_face:
# Feb 13th 2018, 11:25 neon1024 Why doesn’t the foc/bootstrap-ui plugin implement the postLink?
# Feb 13th 2018, 11:07 turkles sadly yes 32 bit :( Ah well.. I'll just test with lower values
# Feb 13th 2018, 11:01 turkles hrm, I was testing on my windows box, Uniserver, may run 32 bit
# Feb 13th 2018, 10:59 hmic delete the orm cache nether the less as a first step
# Feb 13th 2018, 10:59 hmic turkles: is your php 64 bit? it still only supports signed integers i suppose :P
# Feb 13th 2018, 10:56 turkles hrm, I had to change an id from int to bigint, but when I fetch data it seems to be truncating the value - where do I need to update to fix this?
# Feb 13th 2018, 10:56 neon1024 Despite me containing it :thinking_face:
# Feb 13th 2018, 10:56 neon1024 Well my bug seems to be that my initial entity I pass to my form, doesn’t contain the data I’m trying to patch back into it. Thus Cake thinks I’m creating a new associated entity. In case anyone wondered :slightly_smiling_face:
# Feb 13th 2018, 10:44 neon1024 Might I suggest taking a look at https://github.com/friendsofcake/search
# Feb 13th 2018, 10:43 michaelze Okay, thanks @neon1024 and @hmic... I'll give it a try...
# 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 :)