1

I have a table of events and a _dependentTable of eventPerformers. One event can have multiple performers. The performers are related to the events via eventId key within the eventPerformers table. The events table holds no performer data.

Using Zend_DB_Table classes, how can I pull back all events that have a specific performerId? sorting by a date field in the events table?

Thanks for any help!

Jeff
  • 19
  • 1

1 Answers1

1

You can do this by utilizing joins. For more information, and examples, you can have a look at the Zend Framework db select manual.

It's just a regular mysql query with INNER JOIN and SORT BY event.date (verify by echoing the Zend select() generated query)

Jon Skarpeteig
  • 4,118
  • 7
  • 34
  • 53