Log message #4151091

# At Username Text
# Jun 13th 2018, 14:36 jeremyharris if you are mixing new with existing, then the other format is probably the way to go. association.0.id if it exists, association.1.name for new ones
# Jun 13th 2018, 14:34 zmurphy What's the appropriate way in a form to set up controls for both attaching an existing association and adding a new one. I know for existing I can use `$this->Form->control('association._ids', ['options' => $association])` but would that conflict with also having an option to add new associations?
# Jun 13th 2018, 13:21 josbeir classic, should v mentioned that :P
# Jun 13th 2018, 13:19 Martin` ok fixed my problem, I had to add contacts to the accessible array of the entity :P
# Jun 13th 2018, 13:08 josbeir oh snap !
# Jun 13th 2018, 13:07 dereuromark hah, didnt know that these threads are also all published at https://irc.cakephp.org/ :P
# Jun 13th 2018, 13:07 josbeir i'll do my best !
# Jun 13th 2018, 13:07 josbeir didnt investigate it in detail, sorry
# Jun 13th 2018, 13:07 dereuromark only if you help me to make them more awesome though :P
# Jun 13th 2018, 13:07 josbeir :) ok
# Jun 13th 2018, 13:06 dereuromark but you are free to use some cakephp plugins from me :)
# Jun 13th 2018, 13:06 dereuromark those are not plugins, neither are they open source (open code).
# Jun 13th 2018, 13:01 josbeir i could maybe use some plugins for your project ;)
# Jun 13th 2018, 13:01 josbeir but i guess i'll continue building it like that for now, i liked my elasticsearch first aproach, that tech is mature enough these days to do it like that
# Jun 13th 2018, 13:00 josbeir 100k inventory
# Jun 13th 2018, 13:00 josbeir well, i was planning to build a platform to host all those small ones on
# Jun 13th 2018, 12:59 josbeir alright, thats what i tought
# Jun 13th 2018, 12:52 Martin` no did not fix it
# Jun 13th 2018, 12:51 Martin` lets try to be sure. but I see content that I did put in database in variables
# Jun 13th 2018, 12:50 josbeir make sure your table gets detected etc...
# Jun 13th 2018, 12:49 josbeir did you just create the table? maybe clear the ORM cache
# Jun 13th 2018, 12:48 Martin` and I'm also doing it in an other controller there it works fine
# Jun 13th 2018, 12:47 Martin` well it is not really a small project
# Jun 13th 2018, 12:47 josbeir ye
# Jun 13th 2018, 12:47 Martin` crud?
# Jun 13th 2018, 12:46 dereuromark I dont think it is good for small projects :)#
# Jun 13th 2018, 12:45 josbeir right, no experience with that..
# Jun 13th 2018, 12:45 Martin` I'm using the crud plugin
# Jun 13th 2018, 12:44 josbeir where the form data gets converted to an entity and when the save happens
# Jun 13th 2018, 12:44 josbeir Martin, can you show us your action code ?
# Jun 13th 2018, 12:43 Martin` really don't see what I'm doing wrong :(
# Jun 13th 2018, 12:37 josbeir am actually 'in the market' for a new platform to put a bunch of ecommerce stores on i manage in cake 2 at the moment. Started a clean slate now in cake3 but maybe this is better... :slightly_smiling_face:
# Jun 13th 2018, 12:36 Martin` Help! I don't see why I'm failing! I'm trying to save a belongsToMany relation but it does not save the relation looks like this. https://gist.github.com/blieb/1d6190d8150e9b02dc13a39fd307dc5c in de html I've multiple fields with name contacts[_ids][]
# Jun 13th 2018, 12:35 josbeir the platform or the tests? :P
# Jun 13th 2018, 12:35 dereuromark but that makes it also rather slow..^^
# Jun 13th 2018, 12:34 dereuromark one of the most advanced and complete code sniffer packages there are. our codebase is pretty clean from a cs point of view. also helps to reduce errors as then also phpstan integrates nicely due to the doc block consistency for example.
# Jun 13th 2018, 12:33 dereuromark more or less :slightly_smiling_face:
# Jun 13th 2018, 12:28 josbeir Spryker looks interesting, yours @dereuromark?
# Jun 13th 2018, 12:20 dereuromark i recommend also to use a sniff that properly enforces this and takes care of this. Spryker package has a good one here.
# Jun 13th 2018, 12:19 josbeir ]:( phpstorm
# Jun 13th 2018, 12:18 dereuromark why psr? its about the throws annotations only