I try to find the way in your documentation but without success. How can I have the list of tickets with an array_tickets_ids ? Can I dot that with your querying system ? Somethink like :
So you want to pull all the ticket from all of the ID’s you pass in the array? (Just confirming)
If you check your error logs you’ll likely see something like this:
PHP Fatal error: Uncaught EE_Error: There is no model named 'EVT_ID' related to EEM_Ticket. Query param type is 0 and original query param is EVT_ID...
Because tickets are related to datetimes, you need to use:
'Datetime.EVT_ID' => array('IN', $arrayevtids),
Which will then pull all tickets for events with ID 10404 & 10405.
The support post ‘EE4 – Querying with EE Models – Tickets From events list’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.