Skip to content

Commit

Permalink
get class name from document name
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed May 12, 2017
1 parent 86d198d commit e3b75f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MongoDBRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class MongoDBRepository extends DocumentRepository implements Repository
*/
public function getClassName(): string
{
return ClassUtils::getRealClass(parent::getClassName());
return ClassUtils::getRealClass(parent::getDocumentName());
}

/**
Expand Down

0 comments on commit e3b75f6

Please sign in to comment.