Log message #4221214

# At Username Text
# Jan 7th 2020, 09:10 dereuromark But with this string you dont have any benefit. Why not using ::class syntax to have ide jumping?
# Jan 7th 2020, 09:04 dereuromark Nah, this should work in 3.x too. Maybe you need to open an issue.
# Jan 7th 2020, 09:01 lubos @dereuromark still present in latest 3.8, do I need to upgrade to 4.x? ... vendors I use not ready for 4.x yet
# Jan 7th 2020, 08:58 dereuromark LubosR always also specify the cake version. This was an issue that should be fixed afaik
# Jan 7th 2020, 08:35 lubos both should be fine, i rather use className with namespace when using associations out of plugin...
# Jan 7th 2020, 08:29 alexdd55976 shouldn't class name not be like `'className' => 'LayoutsTable',`?
# Jan 7th 2020, 08:20 lubos Morning ```RuntimeException: Blog\Model\Table\PostsTable association "Layouts" of type "manyToOne" to "Core\Model\Table\LayoutsTable" doesn't match the expected class "Blog\Model\Table\LayoutsTable". You can't have an association of the same name with a different target "className" option anywhere in your app.```
# Jan 7th 2020, 07:47 conehead good mornin
# Jan 7th 2020, 07:46 alexdd55976 morning dudes
# Jan 6th 2020, 21:57 savant @johnpaul5421 did you add a submit button to the form and then end the form?
# Jan 6th 2020, 20:55 johnpaul5421 Anyone have any examples of how to submit a Form data passing from a View -> Controller? I tried using $this->form->create(), then checking in the controller if ($this->request->is(
# Jan 6th 2020, 20:40 this.impetus thanks again
# Jan 6th 2020, 20:40 this.impetus <-- thisimpetus
# Jan 6th 2020, 20:40 xavier83ar ```// Inputs for the joint table (articles_tags) echo $this->Form->control('tags.0._joinData.starred'); echo $this->Form->control('tags.1._joinData.starred');``` That example is similar to your needs, _joinData special key it's the way of saving data in the relation table
# Jan 6th 2020, 20:39 thisimpetus time to pack it in for the day. X)
# Jan 6th 2020, 20:38 thisimpetus lolololololol I was wondering why everything looked different, I didn't even notice I'd clicked IRC instead of slack where I normally pester
# Jan 6th 2020, 20:38 challgren @thisimpetus you can also join us on Slack that way if you ask a question you’ll be able to see the history of response if you go offline https://cakesf.herokuapp.com/
# Jan 6th 2020, 20:38 xavier83ar :+1::skin-tone-4:
# Jan 6th 2020, 20:37 thisimpetus that's almost certainly what I needed, you guys are heros
# Jan 6th 2020, 20:37 thisimpetus *thank you*
# Jan 6th 2020, 20:36 xavier83ar https://book.cakephp.org/4/en/views/helpers/form.html#creating-inputs-for-associated-data
# Jan 6th 2020, 20:35 thisimpetus 3.7
# Jan 6th 2020, 20:35 xavier83ar Give a few minutes and I can help you with some examples, are u using cakephp 3 or 4?
# Jan 6th 2020, 20:35 thisimpetus Sigh. This used to be so easy in Cake 2.x and I'm sure it still us, I just don't understand the new world. Your patience is appreciated.
# Jan 6th 2020, 20:33 thisimpetus Maybe this is easier (this is a test server and test database, dont sweat the lax security here) http://kleinlab.psychology.dal.ca/klein2/publications/add . Jump down to the "Select Authors" button, it's easier to visualize than let me ramble on
# Jan 6th 2020, 20:32 thisimpetus "Well, the Publications_Authors table has 4 fields; id, publication_id, author_id, ordinance."
# Jan 6th 2020, 20:31 challgren What extra field?
# Jan 6th 2020, 20:31 thisimpetus Of course, but that only allows for associating the `value` property of each option... but then how does one add the extra field?
# Jan 6th 2020, 20:27 challgren On your form, the way you have it your options should be an array of existing authors
# Jan 6th 2020, 20:21 thisimpetus No, just the associations; I'm creating a Publication_Author record, though, or at least trying to
# Jan 6th 2020, 20:21 thisimpetus well I don't really understand that quesiton, lol, but that tells me what I need to read and what's changed since cake 2.x whatever. Thanks, pardon my nubness, front-end guy doing double-detail here.
# Jan 6th 2020, 20:21 challgren Are you creating the author the same time as the Publication?
# Jan 6th 2020, 20:20 challgren Whats it look like after you patch the entity and before you save it?
# Jan 6th 2020, 20:19 thisimpetus cleaned up: `<input type='hidden' name='Publications.Authors.id value=8>`; a call to `debug($this->request->getData()` reveals that this is adding one entry to the data array, `Publications_Authors_id` instead of the nested array I'd expected
# Jan 6th 2020, 20:18 thisimpetus (pardon the syntax gore)
# Jan 6th 2020, 20:18 thisimpetus like, say this: `<input type='hidden' name='Publications.Authors.id` value=8>`; a call to `debug($this->request->getData()` reveals that this is adding one entry to the data array, `Publications_Authors_id` instead of the nested array I'd expected
# Jan 6th 2020, 20:16 thisimpetus I've been reading that for a while now, I understand what the array in the Request object should look like, I don't understand what the actual html syntax cake expects should be
# Jan 6th 2020, 20:15 challgren https://book.cakephp.org/3/en/orm/saving-data.html#saving-associations
# Jan 6th 2020, 20:14 thisimpetus Well, the Publications_Authors table has 4 fields; id, publication_id, author_id, ordinance. What I'm trying to understand is how to create those entities from a form. With just author_id—which is how cake builds the form out of the gate—I don't get to populate that additional field.
# Jan 6th 2020, 20:12 challgren why not just use author_id instead?
# Jan 6th 2020, 20:12 thisimpetus no joy, hunh? : / Can I clarify my question somehow, if anyone's reading?