[Plugin: WP MVC] Models: multiple join on the same table
-
Hi,
I’m trying to join twice on a table using a belong_to relation.
Basing on the calendar example, in the event model I would replace:
var $belongs_to = array('Venue');
by:
var $belongs_to = array( 'Start Venue' => array('foreign_key' => 'start_venue_id'), 'End Venue' => array('foreign_key' => 'end_venue_id') )
Obviously
var $includes = array('Start Venue', 'End Venue');
won’t work though.Anybody sorted that out?
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: WP MVC] Models: multiple join on the same table’ is closed to new replies.