Log message #4189060

# At Username Text
# Jun 11th 2019, 08:34 conehead I slowly think this is a bug in cake. I can't just get saving through to workin "properly". Is there no way to setup the data in beforeMarshal so that existing entries do not change their id?
# Jun 11th 2019, 07:14 mehov Ah, good point. I made it empty because the docs say *If you use the default for this option (empty), it will not render a separator.* Turns out I had to remove that argument altogether and it works. Thank you!
# Jun 11th 2019, 07:12 kgb.acct.personal Add content to `separator` then check if it displays in the middle
# Jun 11th 2019, 07:11 kgb.acct.personal It's the separator
# Jun 11th 2019, 07:10 slackebot1 <li><span></span></li> <li><a href="/stock/products/add">Add Product</a></li> </ol> ```` My question is where does that middle empty breadcrumb come from?
# Jun 11th 2019, 07:10 mehov Hi guys, still getting breadcrumbs to work ```` $this->Breadcrumbs->add( 'Products', ['controller' => 'products', 'action' => 'index'] ); $this->Breadcrumbs->add( 'Add Product', ['controller' => 'products', 'action' => 'add'] ); echo $this->Breadcrumbs->render( ['class' => 'breadcrumb'], ['separator' => ''] ); ```` Results in: ```` <ol class="breadcrumb"> <li><a href="/stock/products">Products</a></li>
# Jun 11th 2019, 07:03 conehead Good mornin
# Jun 11th 2019, 06:46 imonsei hello everybooty o/
# Jun 11th 2019, 03:18 kgb.acct.personal How do I validate belongsToMany association if they exist?
# Jun 11th 2019, 02:16 ricksaccous @stephenzgalbraith I think you just beforeMarshall the request data from comma delimited to hasMany form
# Jun 11th 2019, 01:11 slackebot1 am not sure how to go about modifying the request data while rewriting the least amount of code.
# Jun 11th 2019, 01:11 stephenzgalbraith Perhaps I'm just extremely tired, but I can't seem to figure out how I would do the following: In a form, let's say I have two fields: page and action --- I want to be able to write a comma separated list into the action field and have individual records entered for the page field and then each individual action once the field is exploded by the comma. I'm figuring it has something to do with saving multiple entities at once, but I
# Jun 10th 2019, 20:26 nucc1 hi, i'm running a cakephp site out of my home directory, and I thought if i simply made the tmp/ directory (recursively) writable by the webserver user, it would be fine, but I keep getting filesystem errors, is there something i'm missing?
# Jun 10th 2019, 18:46 challgren Im gonna have to play around and see what I can hack together
# Jun 10th 2019, 18:39 challgren Thanks JDD
# Jun 10th 2019, 18:15 wbprgrmr86 Awesome! Thanks @jeremyharris!
# Jun 10th 2019, 18:14 jeremyharris @wbprgrmr86 yes! you can pass a query object to it
# Jun 10th 2019, 18:02 JDD_Canada Not sure if that will fit your layout, but I thought Id throw the idea at you
# Jun 10th 2019, 18:01 JDD_Canada @challgren I am doing something similar, each item in my app needs to be updated, and they want to see a timeline, I decided to make the item static, and added a new object "interaction", i moved some of the fields to it, and they operate on it - I use the interaction object to show the changes, generate a timeline
# Jun 10th 2019, 17:47 wbprgrmr86 is it possible in ```$this->paginate()``` to have a where clause option?
# Jun 10th 2019, 16:43 challgren Hehe yep! I mean I do charge per post, so I could duplicate it and charge double my comission :P
# Jun 10th 2019, 16:39 jeremyharris too bad clients pay the bills, eh? :)
# Jun 10th 2019, 16:38 challgren Hmm ok Im gonna have to think this through a bit, client wanted to just duplicate the Posts but has already complained the Posts list is too many. Told them <sarcasm>yeah duplicating them wont solve that problem at all </sarcasm>
# Jun 10th 2019, 16:37 jeremyharris then you know what hasMany tags version to pull
# Jun 10th 2019, 16:37 jeremyharris you could maybe add a tag_version_id and update that as well at the time
# Jun 10th 2019, 16:36 challgren I do update the “Post” when the tags have been changed, via counter cache and manually updating the modified time
# Jun 10th 2019, 16:35 jeremyharris I use that version plugin as well, but your requirement doesn’t quite fit what it does. You might be able to align version_ids (if you use those) but that can be problematic as well
# Jun 10th 2019, 16:34 challgren Damm
# Jun 10th 2019, 16:33 jeremyharris I think for something like that you would need custom versioning or to store tags/fks on the posts table itself
# Jun 10th 2019, 16:29 slackebot1 individual tags.
# Jun 10th 2019, 16:29 challgren Does anyone know of a version/audit plugin that also plays nice with hasManys? I’ve looked into https://github.com/josegonzalez/cakephp-version but I need something that shows the versioned hasManys? Basically I have say a Post that has many tags. Version 1 of the Post has 2 tags and then Version 2 of the post has 8 tags, and version 3 has 3 tags. I wanna be able to look at the Post with different versions instead of looking at the
# Jun 10th 2019, 14:23 ricksaccous just breaded and fried pork
# Jun 10th 2019, 14:23 jeremyharris no I haven’t
# Jun 10th 2019, 14:23 ricksaccous i love it
# Jun 10th 2019, 14:23 ricksaccous have you ever made tonkatsu
# Jun 10th 2019, 14:22 jeremyharris but to each his own :P
# Jun 10th 2019, 14:21 jeremyharris I’d prefer croutons, breadcrumbs are better for breading + frying or as a binder like for a meatball
# Jun 10th 2019, 14:20 ricksaccous speaking of breadcrumbs, an actual salad with breadcrumbs would be great rightnow
# Jun 10th 2019, 14:19 jeremyharris helpers are loaded onto views, not controllers, so that’s why you’re getting that error on a controller
# Jun 10th 2019, 13:48 mehov I'm on 3.7.2. and `$this->loadHelper('Breadcrumbs');` itself doesn't seem to be giving me any errors. However, when I change *Breadcrumbs* to something random, it does show an error
# Jun 10th 2019, 13:46 mehov Hey guys, I need help getting Breadcrumbs to work. I'm putting `$this->loadHelper('Breadcrumbs');` into src/View/AppView, but still when I call `$this->Breadcrumbs->...` in my controller, it gives me *Undefined property: PriceTestingController::$Breadcrumbs*