Skip to content

Commit

Permalink
Fixed parentesis bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizaco committed Mar 26, 2013
1 parent cd3c589 commit 35b5757
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Zizaco/FactoryMuff/FactoryMuff.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,18 @@ private function generateAttr( $kind )
{
return $related->getKey();
}
else
elseif( $related->id )
{
return $related->id;
}
elseif( $related->_id )
{
return $related->_id;
}
else
{
return null;
}
}

// Overwise interpret the kind and 'generate' some
Expand Down

0 comments on commit 35b5757

Please sign in to comment.