EEConf 2024 is around the corner! EEConf 2024
Hello. I have set up a channel with some custom fields. These fields do not appear with the main properties when performing a model search, they appear to be in the collection object as entities such as ‘field_id_20’. How do I perform a model search and specify a particular field as a filter in my query?
I’m hoping I can do something like: $entries = ee(‘Model’)->get(‘ChannelEntry’)->with(‘field:20’)->all();
Any help or pointers to documentation would be very appreciated.
Hello @ fnaf 2, To perform a model search and specify a particular field as a filter in your query, you would need to access the appropriate model and use the available methods or syntax provided by your CMS or framework.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.