From c3ec6e383c87b6f81dc74bbd9e6799230ece01de Mon Sep 17 00:00:00 2001 From: Sergey Linnik Date: Tue, 18 Oct 2011 01:14:07 +0400 Subject: [PATCH] Fix isTransient call on uninitialized ClassMetadataFactory --- lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php b/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php index 248e4a2f9..239022b0f 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php @@ -494,6 +494,10 @@ class ClassMetadataFactory implements ClassMetadataFactoryInterface */ public function isTransient($class) { + if ( ! $this->initialized) { + $this->initialize(); + } + return $this->driver->isTransient($class); } }