Permalink
Browse files

this is redundant with the nearly identical code above referencing mo…

…del_for_table_name
  • Loading branch information...
markhuot committed Jan 16, 2012
1 parent 8bb9883 commit 57c58f5e011fe8c61a5e170b8f71e9927e81f985
Showing with 0 additions and 5 deletions.
  1. +0 −5 NucleusQuery.php
View
@@ -206,11 +206,6 @@ public function prep_joins() {
$c['as'] = @$matches[3];
}
- // If our primary table is still a string turn it into a model
- if (is_string($c['primary_table'])) {
- $c['primary_table'] = $this->model_for_table_name($c['primary_table']);
- }
-
// Check if we're referring to a defined relationship on the
// primary table.
if ($config = $c['primary_table']->join_named($c['foreign_table'])) {

0 comments on commit 57c58f5

Please sign in to comment.