Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread Joe T.
Thank you José, i'll try that tonight as well. On Thursday, 12 March 2015 12:12:05 UTC-4, José Lorenzo wrote: > > If you want to create first and then link follow the instructions in this > section: > > > http://book.cakephp.org/3.0/en/orm/saving-data.html#saving-belongstomany-associations > > S

Testing AppModel by core Cake tests

2015-03-12 Thread Dmitry Romanov
Hello Everyone, I have changed standart behaviour for models in my AppModel, and i'm running core CakePHP tests (testsuite core Model/Model), but models in tests not uses my AppModel. How can I test my AppModel with tests from cake? Thank you. -- Dmitry Romanov -- Like Us on FaceBook http

Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread José Lorenzo
If you want to create first and then link follow the instructions in this section: http://book.cakephp.org/3.0/en/orm/saving-data.html#saving-belongstomany-associations Specifically where it shows the calls to `Users->link($article, [$user])` On Thursday, March 12, 2015 at 3:09:54 PM UTC+1, Joe

Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread Joe T.
Somehow, i'm totally unsurprised. >_< i'll take a look at the sample you uploaded tonight. You're right, without some UI controls, all the Attributes would require values for the Submit to save successfully. i have Javascript toggling the [disabled] property on the *_joinData.value* and hidden

Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread heavyKevy
Joe, I tried doing a composer update and test and it is not broken for me. https://www.dropbox.com/s/7tjqy3i5z9hnngc/src.zip?dl=0 This is all of the source that I threw together to get it to work. The example is far from perfect in that I don't have all of the fields that you have in my tables

Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread Joe T.
Unfortunately no, i don't know what hash i was on before i updated. It would be one of the untagged RC2 commits within the last couple weeks i was trying to get this to work. i'm willing to backtrack, though, to try to find out. Suggestions how i would do that? Looking at the PR list on Github

Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread José Lorenzo
No, it is not related to that issue. Do you have any idea of what cake version you were using before updating? On Thursday, March 12, 2015 at 4:37:50 AM UTC+1, Joe T. wrote: > > i absolutely cannot believe this: it's broken again. i haven't done > anything but run *composer update* and i'm back