8000 [DoctrineBundle] fixed MetadataFactory::getMetadataForClass() to alwa… · 77web/symfony@6e96acc · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6e96acc

Browse files
author
Hugo Hamon
committed
[DoctrineBundle] fixed MetadataFactory::getMetadataForClass() to always return a ClassMetadataCollection object instead of NULL.
1 parent 8818439 commit 6e96acc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/DoctrineBundle/Mapping/MetadataFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ private function getMetadataForClass($entity)
151151
return new ClassMetadataCollection(array($metadata));
152152
}
153153
}
154+
155+
return new ClassMetadataCollection(array());
154156
}
155157

156158
private function getAllMetadata()

0 commit comments

Comments
 (0)
0