Skip to content

Instantly share code, notes, and snippets.

@muriloazevedo
Created June 4, 2013 04:50
Show Gist options
  • Save muriloazevedo/5703654 to your computer and use it in GitHub Desktop.
Save muriloazevedo/5703654 to your computer and use it in GitHub Desktop.
Fazendo relações no DataMapper do CI
class Forum extends DataMapper{
public $has_many = array(
'filter' => array(
'join_table' => 'filter_forums'
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment