*/ class Doctrine_ClassMetadata_CodeDriver { /** * Loads the metadata for the specified class into the provided container. */ public function loadMetadataForClass($className, Doctrine_ClassMetadata $metadata) { if ( ! method_exists($className, 'initMetadata')) { throw new Doctrine_ClassMetadata_Exception("Unable to load metadata for class" . " '$className'. Callback method 'initMetadata' not found."); } call_user_func_array(array($className, 'initMetadata'), array($metadata)); } }