Skip to content

Commit

Permalink
Fixed: Sammaye#107
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammaye committed Aug 27, 2013
1 parent a0ee6a9 commit f3f8264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EMongoDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ public function getAttributeLabel($attribute)
$model=$this;
foreach($segs as $seg)
{
$relations=$model->getMetaData()->relations;
$relations=$model->relations();
if(isset($relations[$seg]))
$model=EMongoDocument::model($relations[$seg]->className);
$model=EMongoDocument::model($relations[$seg][1]);
else
break;
}
Expand Down

0 comments on commit f3f8264

Please sign in to comment.