Permalink
Browse files

making exception about missing alias annotation more telling

  • Loading branch information...
1 parent e8e7d7d commit 84c85c0a9351699e6ec2e71982ba35d81598644d @dbu dbu committed Oct 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/ODM/PHPCR/Mapping/Driver/AnnotationDriver.php
@@ -131,7 +131,7 @@ public function loadMetadataForClass($className, ClassMetadata $class)
$documentAnnot = reset($documentAnnots);
if (!$documentAnnot->alias) {
- throw new MappingException('Alias must be specified in the Document() annotation mapping');
+ throw new MappingException("Alias must be specified in the Document() annotation mapping of $className");
}
$class->setAlias($documentAnnot->alias);

0 comments on commit 84c85c0

Please sign in to comment.