Fork me on GitHub

find_by_*

For every attribute of a model, WP MVC will provide a find_by_* method that returns all records with that value for that column.

For example, if Event has a column venue_id:

<?php
$event_model = mvc_model('Event');
$events = $event_model->find_by_venue_id(4);
?>