Skip to content

Commit

Permalink
added isTransient() to ClassMetadataFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Sep 25, 2011
1 parent 98d4e14 commit 5d39d15
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadataFactory.php
Expand Up @@ -262,4 +262,17 @@ protected function newClassMetadataInstance($className)
{
return new ClassMetadata($className);
}

/**
* Whether the class with the specified name should have its metadata loaded.
* This is only the case if it is either mapped as an Entity or a
* MappedSuperclass.
*
* @param string $className
* @return boolean
*/
public function isTransient($className)
{
return $this->driver->isTransient($className);
}
}
2 changes: 1 addition & 1 deletion lib/vendor/doctrine-common
Submodule doctrine-common updated 92 files
+61 −0 UPGRADE_TO_2_2
+47 −0 lib/Doctrine/Common/Annotations/Annotation/Attribute.php
+37 −0 lib/Doctrine/Common/Annotations/Annotation/Attributes.php
+1 −0 lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php
+33 −0 lib/Doctrine/Common/Annotations/Annotation/Required.php
+105 −0 lib/Doctrine/Common/Annotations/Annotation/Target.php
+57 −0 lib/Doctrine/Common/Annotations/AnnotationException.php
+22 −105 lib/Doctrine/Common/Annotations/AnnotationReader.php
+1 −1 lib/Doctrine/Common/Annotations/DocLexer.php
+351 −84 lib/Doctrine/Common/Annotations/DocParser.php
+136 −85 lib/Doctrine/Common/Annotations/PhpParser.php
+155 −0 lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
+31 −25 lib/Doctrine/Common/Cache/ApcCache.php
+23 −18 lib/Doctrine/Common/Cache/ArrayCache.php
+33 −2 lib/Doctrine/Common/Cache/Cache.php
+66 −96 lib/Doctrine/Common/Cache/CacheProvider.php
+32 −37 lib/Doctrine/Common/Cache/MemcacheCache.php
+121 −0 lib/Doctrine/Common/Cache/MemcachedCache.php
+92 −0 lib/Doctrine/Common/Cache/WinCacheCache.php
+35 −30 lib/Doctrine/Common/Cache/XcacheCache.php
+20 −16 lib/Doctrine/Common/Cache/ZendDataCache.php
+20 −19 lib/Doctrine/Common/ClassLoader.php
+7 −1 lib/Doctrine/Common/Collections/ArrayCollection.php
+1 −1 lib/Doctrine/Common/Collections/Collection.php
+43 −0 lib/Doctrine/Common/Comparable.php
+167 −0 lib/Doctrine/Common/DateTime/DateTime.php
+81 −0 lib/Doctrine/Common/DateTime/DateTimeFactory.php
+41 −0 lib/Doctrine/Common/DateTime/ImmutableException.php
+0 −2 lib/Doctrine/Common/EventManager.php
+1 −1 lib/Doctrine/Common/EventSubscriber.php
+214 −0 lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php
+62 −0 lib/Doctrine/Common/Persistence/ConnectionRegistry.php
+111 −0 lib/Doctrine/Common/Persistence/ManagerRegistry.php
+12 −12 lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php
+15 −5 lib/Doctrine/Common/Persistence/Mapping/ClassMetadataFactory.php
+10 −10 lib/Doctrine/Common/Persistence/ObjectManager.php
+4 −4 lib/Doctrine/Common/Persistence/ObjectRepository.php
+3 −2 lib/Doctrine/Common/Util/Debug.php
+1 −1 lib/Doctrine/Common/Version.php
+147 −2 tests/Doctrine/Tests/Common/Annotations/AbstractReaderTest.php
+3 −3 tests/Doctrine/Tests/Common/Annotations/CachedReaderTest.php
+720 −10 tests/Doctrine/Tests/Common/Annotations/DocParserTest.php
+10 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/Annotation/AnnotWithDefaultValue.php
+1 −2 tests/Doctrine/Tests/Common/Annotations/Fixtures/Annotation/Autoload.php
+5 −3 tests/Doctrine/Tests/Common/Annotations/Fixtures/Annotation/Route.php
+1 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/Annotation/Secure.php
+1 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/Annotation/Template.php
+14 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationTargetAll.php
+14 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationTargetAnnotation.php
+15 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationTargetClass.php
+15 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationTargetMethod.php
+14 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationTargetPropertyMethod.php
+119 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationWithAttributes.php
+50 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationWithRequiredAttributes.php
+24 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php
+11 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationWithTargetSyntaxError.php
+62 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationWithVarType.php
+21 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassWithAnnotationWithTargetSyntaxError.php
+31 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassWithAnnotationWithVarType.php
+11 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassWithFullyQualifiedUseStatements.php
+17 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassWithInvalidAnnotationTargetAtClass.php
+20 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassWithInvalidAnnotationTargetAtMethod.php
+24 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassWithInvalidAnnotationTargetAtProperty.php
+41 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassWithValidAnnotationTarget.php
+15 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/DifferentNamespacesPerFileWithClassAsFirst.php
+15 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/DifferentNamespacesPerFileWithClassAsLast.php
+13 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/EqualNamespacesPerFileWithClassAsFirst.php
+12 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/EqualNamespacesPerFileWithClassAsLast.php
+12 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/GlobalNamespacesPerFileWithClassAsFirst.php
+12 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/GlobalNamespacesPerFileWithClassAsLast.php
+14 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/InvalidAnnotationUsageButIgnoredClass.php
+10 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/InvalidAnnotationUsageClass.php
+20 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/NamespaceAndClassCommentedOut.php
+15 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/NamespaceWithClosureDeclaration.php
+1,009 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/NamespacedSingleClassLOC1000.php
+5 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/NoAnnotation.php
+1,006 −0 tests/Doctrine/Tests/Common/Annotations/Fixtures/SingleClassLOC1000.php
+37 −3 tests/Doctrine/Tests/Common/Annotations/PerformanceTest.php
+131 −12 tests/Doctrine/Tests/Common/Annotations/PhpParserTest.php
+0 −258 tests/Doctrine/Tests/Common/Annotations/Regression/BCAnnotationReaderTest.php
+43 −0 tests/Doctrine/Tests/Common/Annotations/SimpleAnnotationReaderTest.php
+12 −10 tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM55Test.php
+8 −0 tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Entity.php
+119 −0 tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Test.php
+1 −0 tests/Doctrine/Tests/Common/Annotations/TopLevelAnnotation.php
+34 −40 tests/Doctrine/Tests/Common/Cache/CacheTest.php
+31 −0 tests/Doctrine/Tests/Common/Cache/MemcachedCacheTest.php
+20 −0 tests/Doctrine/Tests/Common/Cache/WinCacheCacheTest.php
+1 −22 tests/Doctrine/Tests/Common/Cache/ZendDataCacheTest.php
+42 −0 tests/Doctrine/Tests/Common/DateTime/DateTimeFactoryTest.php
+105 −0 tests/Doctrine/Tests/Common/DateTime/DateTimeTest.php
+4 −0 tests/Doctrine/Tests/TestInit.php

0 comments on commit 5d39d15

Please sign in to comment.