Message of the day:
Latest 3.x release: 3.7.3 - it runs on php 7! This is the channel for any SS3-related questions
Backend discussions on SilverStripe 3. For version 4 or newer, see #C36U3BDHN|ss4 or #C0QSDASKT|general. If you are using a version lower than SS3.4, please state, because it makes a difference!
in the $products list or would it be easier to test $product in a loop with ->Subcategories()->filter(['Title:ExactMatchMulti']) ?
in SS3 I have a set of products and they have a relation called 'Subcategories' as a many_many - I need to test each product in the set to see if the currently selected 'Subcategory' is in the many_many relation? and return only those - do I need `filter(['Subcategories.Title::ExactMultiMatch' ])??
I cant seem to log into admin, setDefaultAdmin doesnt work, the form just submits and redirects to myself
I tried many ways to resolve it but couldn't reach it.
Hah, yeah... we can't tell what you can change 😄
I can’t answer that, it’s your code 😛
Can't I change anything in my existing code and get the result?
You can adjust which records are available by overriding
getList() as described here https://docs.silverstripe.org/en/3/developer_guides/customising_the_admin_interface/modeladmin/#displaying-results