# |
Jan 7th 2020, 09:24 |
conehead |
Just wondering why only I seem to have that error |
# |
Jan 7th 2020, 09:23 |
conehead |
Just deleted the lock file. Same error |
# |
Jan 7th 2020, 09:23 |
dereuromark |
you can also remove the lock file for now, that should have the same effect :) |
# |
Jan 7th 2020, 09:23 |
dereuromark |
set cakephp into it, I mean. you have bake in the lock file and thats whats blocking you |
# |
Jan 7th 2020, 09:22 |
conehead |
bake is not in my composer file. seems to be somewhere else. Am I in dependency hell? |
# |
Jan 7th 2020, 09:21 |
dereuromark |
then adjust the composer.json and run global update. the lock file currently seems to block this. |
# |
Jan 7th 2020, 09:20 |
conehead |
unfortunately still the same error |
# |
Jan 7th 2020, 09:20 |
conehead |
`require --update-with-all-dependencies "cakephp/cakephp:4.0.*"` |
# |
Jan 7th 2020, 09:17 |
dereuromark |
Try that |
# |
Jan 7th 2020, 09:17 |
dereuromark |
With-all |
# |
Jan 7th 2020, 09:14 |
conehead |
but why? |
# |
Jan 7th 2020, 09:14 |
slackebot |
these conflict with you r requirements or minimum-stability. - Installation request for cakephp/bake (locked at 1.12.0) -> satisfiable by cakephp/bake[1.12.0].``` |
# |
Jan 7th 2020, 09:14 |
slackebot |
cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.x-dev] but these conflict with you r requirements or minimum-stability. - cakephp/bake 1.12.0 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.x-dev] but |
# |
Jan 7th 2020, 09:14 |
conehead |
```composer remove cakephp/bake php composer.phar require --update-with-dependencies "cakephp/cakephp:4.0.*" Problem 1 - cakephp/bake 1.12.0 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.x-dev] but these conflict with you r requirements or minimum-stability. - cakephp/bake 1.12.0 requires |
# |
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? |