Message of the day:
Security release 4.4.4 is out. Changelog: https://github.com/silverstripe/silverstripe-framework/blob/4/docs/en/04_Changelogs/4.4.4.md
SilverStripe 4 related information and questions.
Hi Folks, has anyone upgraded silverstripe from 3.6.6 to 4.4.1 or 4.1 ?
As you already have an ArrayList, why not search the ArrayList by callback?
So you mean i should use the filterByCallback Method?
yes. I dunno if search filters work with ArrayLists.
ArrayListTest doesn't use search filter modifiers.. https://github.com/silverstripe/silverstripe-framework/blob/4/tests/php/ORM/ArrayListTest.php
DataListTest does, so it doesn't seem to be supported
Good catch, I thought it should work
And the related issue: https://github.com/silverstripe/silverstripe-framework/issues/5911
Request for enhancement to ArrayList originally discussed in (and subsequently taken from) core dev DL and setup as an issue here for tracking. It appears that array lists do not actually utilize f...Hide attachment content
Hmm okay, it seems that this solution have a lower performance. I’m doing some code optimizations, so i will try to filter the companies in my API call first.
Thanks for help 🙂
It seems, that PartialMatch is for
Like '%Foo' DB queries, so it won't work on ArrayLists?
Hey, Can someone help me out with SearchFilter Modifiers? I’m fetching Companies from an API and I want to filter them via “PartialMatch”
It helps when @unclecheese is your SMS buddy
sometimes you just need to talk out loud and type it into Slack
> onBeforeWrite when a record is added to the join table
Isn’t that just an
onBeforeWrite() in your ‘through’ class?