Merge pull request #154 from Partugal/master
Fix isTransient call on uninitialized ClassMetadataFactory
This commit is contained in:
commit
7345c795ac
@ -494,6 +494,10 @@ class ClassMetadataFactory implements ClassMetadataFactoryInterface
|
||||
*/
|
||||
public function isTransient($class)
|
||||
{
|
||||
if ( ! $this->initialized) {
|
||||
$this->initialize();
|
||||
}
|
||||
|
||||
return $this->driver->isTransient($class);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user